code-from-char
Returns the decimal Unicode value (code) of the character supplied as argument. If the string supplied as argument has multiple characters, then the code of the first character is returned.
Languages
Built-in, C++, C#, Java, XQuery, XSLT 2.0, XSLT 3.0.
Parameters
Name | Description |
---|---|
char | The input string value. |
Example
If the input char is the \$ (dollar sign) character, the function returns 36 (which is the decimal Unicode value for this character).