parseNumber"
From Documentation
m |
|||
Line 11: | Line 11: | ||
Parses text from the beginning of the given string to produce a number with the given pattern. | Parses text from the beginning of the given string to produce a number with the given pattern. | ||
− | There is another extended built-in function, | + | There is another extended built-in function, <javadoc method="parseNumber(java.lang.String, java.lang.String, java.util.Locale)">org.zkoss.xel.fn.CommonFns</javadoc>, not declared in taglib. Parses text from the beginning of the given string to produce a number with the given pattern and locale. |
− | + | You can call it by [[ZUML%20Reference/EL%20Expressions/Static%20Fields%20and%20Methods| EL]] or declaring a [[ZUML_Reference/ZUML/Processing_Instructions/xel-method| xel-method]]. | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | You can | ||
Latest revision as of 07:58, 27 May 2021
The default method:
Number parseNumber(String source, String pattern);
Parses text from the beginning of the given string to produce a number with the given pattern.
There is another extended built-in function, CommonFns.parseNumber(String, String, Locale), not declared in taglib. Parses text from the beginning of the given string to produce a number with the given pattern and locale.
You can call it by EL or declaring a xel-method.
Parameters:
In both default and extended function:
- source - the text to parse
- pattern - the pattern to apply
In extended function only:
- locale - the locale to apply
Version History
Version | Date | Content |
---|---|---|
6.0.1 |