- 所有已实现的接口:
- Function
public class SubString
extends java.lang.Object
implements Function
Function: string substring(string, number, number?)
https://www.w3.org/TR/1999/REC-xpath-19991116/#function-substring
The substring function returns the substring of the first argument starting at the position specified in
the second argument with length specified in the third argument. For example, substring("12345",2,3) returns "234".
If the third argument is not specified, it returns the substring starting at the position specified in the
second argument and continuing to the end of the string. For example, substring("12345",2) returns "2345".
substring("12345", 1.5, 2.6) returns "234"
substring("12345", 0 `div` 0, 3) returns ""
substring("12345", 1, 0 `div` 0) returns ""
substring("12345", -42, 1 `div` 0) returns "12345"
substring("12345", -1 `div` 0, 1 `div` 0) returns ""
- 从以下版本开始:
- 2018/3/26.
- 作者:
- github.com/zhegexiaohuozi seimimaster@gmail.com