For Objective-C in iOS:
If I have a string how could I read the unicode numeric value of an individual character?
For example if my string was: “∆” That unicode character is U+0394, so how could I read the string, figure out the “0394” then create a new string with say 100 added to that value, so the new string would be the character U+0494 or “ҕ”
Thanks!
First, there is a fallacy in your logic.
∆ + 100 != ҕ. Unicode is evaluated in base-16 (hex), so ‘∆’ is actually equal to916in decimal, not394. Thus,0x0494 - 0x0394 = 0x0100, which equals256.With that in mind, your code should look something like this: