diff --git a/base/src/functions/mod.rs b/base/src/functions/mod.rs index 8397fd1..d0eb934 100644 --- a/base/src/functions/mod.rs +++ b/base/src/functions/mod.rs @@ -569,7 +569,7 @@ impl Function { "SEARCH" => Some(Function::Search), "TEXT" => Some(Function::Text), "TRIM" => Some(Function::Trim), - "UNICODE" => Some(Function::Unicode), + "UNICODE" | "_XLFN.UNICODE" => Some(Function::Unicode), "UPPER" => Some(Function::Upper), "REPT" => Some(Function::Rept), diff --git a/base/src/test/test_fn_unicode.rs b/base/src/test/test_fn_unicode.rs index efb588a..31469d9 100644 --- a/base/src/test/test_fn_unicode.rs +++ b/base/src/test/test_fn_unicode.rs @@ -15,6 +15,8 @@ fn simple_cases() { model._set("A8", "=UNICODE(\"の\")"); model._set("A9", "=UNICODE(\" \")"); + model._set("A10", "=_xlfn.UNICODE(\"T\")"); + model.evaluate(); assert_eq!(model._get_text("A1"), *"49"); @@ -26,6 +28,7 @@ fn simple_cases() { assert_eq!(model._get_text("A7"), *"70"); assert_eq!(model._get_text("A8"), *"12398"); assert_eq!(model._get_text("A9"), *"32"); + assert_eq!(model._get_text("A10"), *"84"); } #[test]