Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
4.0.0
Description
Fix the following string expressions to handle one-to-many case mapping properly:
- StringReplace
- StringInstr
- StringLocate
- SubstringIndex
- StringTrim
- StringTrimLeft
- StringTrimRight
ย
Examples of incorrect results (underย ICU collations):
StringReplace("๐a", "a", "b") // returns: "๐ab" (incorrect), instead of: "๐b" (correct)
ย
StringInstr("๐a", "a") // returns: 3 (incorrect), instead of: 2 (correct)
ย
StringLocate("a", "๐a") // returns: 3 (incorrect), instead of: 2 (correct)
ย
SubstringIndex("๐a", "a") // returns: "๐a" (incorrect), instead of: "๐" (correct)
ย
StringTrim("๐", "๐") // returns: "๐" (incorrect), instead of: "" (correct)
ย
StringTrimLeft("๐", "๐") // returns: "๐" (incorrect), instead of: "" (correct)
ย
StringTrimRight("๐", "๐") // returns: "๐" (incorrect), instead of: "" (correct)