Natives
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Natives
Um . . .
- -
What does native mean in this context:
"Use the nativeCharToNum function to translate native characters to their 8-bit numerical value."
especially as my native instinct would push me towards using codePointToNum?
The documentation is extremely murky as it does not define native.
-
- Livecode Opensource Backer
- Posts: 10099
- Joined: Fri Feb 19, 2010 10:17 am
Re: Natives
"These functions convert between text and native characters and are replacements
for the deprecated numToChar and charToNum functions.
As the native character sets for each platform have a limited and different repertoire,
these functions should not be used when preservation of Unicode text is desired.
Any characters that cannot be mapped to the native character set are replaced with a question mark character (?).
Unless needed for compatibility reasons, it is recommended that you use the numToCodepoint and
codepointToNum functions instead."
"native character sets" . . . bloody hell: are those entirely congruent on Windows, Macintosh and Linux?
I am jalousing no!
for the deprecated numToChar and charToNum functions.
As the native character sets for each platform have a limited and different repertoire,
these functions should not be used when preservation of Unicode text is desired.
Any characters that cannot be mapped to the native character set are replaced with a question mark character (?).
Unless needed for compatibility reasons, it is recommended that you use the numToCodepoint and
codepointToNum functions instead."
"native character sets" . . . bloody hell: are those entirely congruent on Windows, Macintosh and Linux?
I am jalousing no!