Natives

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Natives

Post by richmond62 » Sat Dec 19, 2020 2:12 pm

Scot.jpeg
-
Um . . .
-
Screenshot 2020-12-19 at 15.08.18.png
-
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.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Natives

Post by richmond62 » Sat Dec 19, 2020 2:15 pm

"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!

Post Reply