syntax:functions:code
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
syntax:functions:code [2019/12/06 06:34] – created dmitry | syntax:functions:code [2021/08/01 18:23] – craigt | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | =====Code(text)===== | + | ====== Code(text) ====== |
+ | Category: | ||
- | Returns | + | \\ |
+ | =====Description===== | ||
+ | This function returns | ||
- | Attempting to get the code of a character with UTF-8 code greater than 2027 will result in error "# | + | \\ |
+ | =====Arguments===== | ||
+ | ^Argument^Type^Description^ | ||
+ | |text|Text|A text string from which the UTF-8 value of the first character | ||
- | Example: | + | **Return value type:** Number |
- | ^ Expression ^ Result ^ | + | |
- | | code("ABC" | + | \\ |
+ | =====Remarks===== | ||
+ | Attempting to get the code of a character with UTF-8 code greater than 2047 will result in an "#Exotic character" | ||
+ | |||
+ | \\ | ||
+ | =====Examples===== | ||
+ | |||
+ | code(' | ||
+ | code(' ') = 32 //Space character | ||
+ | code(' | ||
+ | |||
+ | \\ | ||
+ | ===== See also ===== | ||
+ | * [[syntax: |
syntax/functions/code.txt · Last modified: 2021/08/14 21:56 by craigt