代码之家  ›  专栏  ›  技术社区  ›  Eloise Zeng

在java字符串方法中,“toffset”和“ooffset”代表什么:regionMatches(int-toffset,String-other,int-ooffset,int-len)?

  •  -1
  • Eloise Zeng  · 技术社区  · 3 年前

    java方法regionMatches有以下参数:(int-toffset、String-other、int-ooffset、int-len)

    在单词“offset”前面加上“t”和“o”代表什么?以下是该方法的文档链接regionMatches。

    https://docs.oracle.com/javase/8/docs/api/java/lang/String.html#regionMatches-int-java.lang.String-int-int-

    1 回复  |  直到 3 年前
        1
  •  2
  •   OneCricketeer Gabriele Mariotti    3 年前

    来自Javadoc

    参数

    • toffset-子区域的起始偏移量 一串
    • 另外 - 字符串参数
    • ooffset—子区域在中的起始偏移量 字符串参数 (其他参数)