Hi Freaks
In the sphere von ERiC/Elster there is the need to replace some characters with "simple" ones.
e.g. A-acute: Á → A
Unicode provides us with a hughe database of codepoints and there normalization.
In UnifAce we have $string() to de-esacpe "&#nnnn;"
But this is only one side of the coin 🙂
How "normalize"/"simplifie" all codepoints in a given string
So, is there a $anti_string() to get the codepoint-number from a given character?
Or need I to loop over all codepoints to find the character?
; not really UnifAce, but pseudo-Uniface
FOR all v_char in v_string
IF(v_char not allowed)
FOR all codepoints
IF(v_char==$string("&#%%v_codepoint%%%;"))
get the decomposing string
replace charater with the first char in decompose string
ENDIF
ENDFOR
ENDIF
ENDFOR
Any other ideas to do this task?
And C++ is not my favorite option.
UnifAce ist a program language wich should handle this kind of things too 🙂
Ingo



