com.supermap.dtf.expression

类 DefaultStringFunction



  • public class DefaultStringFunction
    extends Object
    字符串函数再封装
    • 方法详细资料

      • length

        public static int length(String str)
        获取字符串长度
        参数:
        str -
        返回:
      • concat

        public static String concat(String str,
                                    String str2)
        连接两个字符串
        参数:
        str -
        str2 -
        返回:
        返回连接之后的新字符串
      • toUpperCase

        public static String toUpperCase(String str)
      • toLowerCase

        public static String toLowerCase(String str)
      • findRegularExpression

        public static int findRegularExpression(String regex,
                                                String content,
                                                boolean caseSensitive)
        找到指定正则匹配到字符串的开始位置
        参数:
        regex - 正则
        content - 字符串
        返回:
        位置,没找到返回-1
      • replaceRegularExpression

        public static String replaceRegularExpression(String str,
                                                      String regex,
                                                      String replacement)

Copyright © 2021–2025 SuperMap. All rights reserved.