![]() | Warning |
---|---|
GT.M performs operations on literals at compile time and the pattern codes settings may have an impact on such operations. Therefore, always compile with the same pattern code settings as those used at runtime. |
General category as per the UnicodeA(R) standard |
GT.M patcode class |
---|---|
L* (all letters) |
A |
M* (all marks) |
P |
Nd (decimal numbers) |
N (if decimal digit is ASCII or $ZPATNUMERIC is "UTF-8", otherwise A |
Nl (letter numbers) |
A (examples of Nl are Roman numerals) |
No (other numbers) |
A (examples of No are fractions) |
P* (all punctuation) |
P |
S* (all symbols) |
P |
Zs (spaces) |
P |
Zl (line separators) |
C |
Zp (paragraph separators) |
C |
C* (all control code points) |
C |
For a description of the Unicode general categories, refer to http://unicode.org/charts/.
Example:
GTM>write $zpatnumeric UTF-8 GTM>Write $Char($$FUNC^%HD("D67"))?.N ; This is the Malayalam decimal digit 1 1 GTM>Write 1+$Char($$FUNC^%HD("D67")) 1 GTM>Write 1+$Char($$FUNC^%HD("31")) ; This is the ASCII digit 1 2