02-23-2023 02:30 PM
The RIGHT (STR, SIZE) and LEFT (STR, SIZE) functions are not OpCon string functions and therefore do not comply with the E112 rule "Use the OpCon string functions to work with strings".
I don't see a way to achieve a similar result using OpCon string functions. Is there any way?
I know I can use OpconMemSet or a similar approach, but I'd rather have something like OpconStrRight(pStr, size) and OpconStrLeft(pStr, size).
.
Solved! Go to Solution.
02-24-2023 09:31 AM
Thanks for the hint!
We are planning to add the missing OpCon string functions in one of the next versions. I am afraid the CodeChecker is slightly ahead of the times and does not distinguish between the string functions that can already be replaced and the missing ones.
For the time being, please ignore the CodeChecker findings.
02-27-2023 03:21 PM
LEFT, RIGHT string can be substituted by use of OpconStrDelete. You can delete all characters from specified character to right and then content on the left remains and vice versa. But it is not much comfortable. 😡
02-27-2023 03:27 PM - edited 02-27-2023 03:28 PM
Hello @nexidator
voice of people 😀 says we need:
LEFT, RIGHT, MID, REPLACE and maybe some methods know from higher languages like Split, SwapCase, IsDecimal, IsNumeric, IsAscii, Count....