Home
last modified time | relevance | path

Searched refs:beginIndex (Results 1 – 25 of 31) sorted by relevance

12

/libcore/ojluni/src/main/java/java/text/
DAttributedString.java201 int beginIndex, in AttributedString() argument
203 this(text, beginIndex, endIndex, null); in AttributedString()
229 int beginIndex, in AttributedString() argument
239 if (beginIndex < textBeginIndex || endIndex > textEndIndex || beginIndex > endIndex) in AttributedString()
244 text.setIndex(beginIndex); in AttributedString()
249 if (beginIndex == endIndex) in AttributedString()
278 if (start >= beginIndex && limit <= endIndex) { in AttributedString()
279 … addAttribute(attributeKey, value, start - beginIndex, limit - beginIndex); in AttributedString()
289 if (limit > beginIndex) { in AttributedString()
291 if (start < beginIndex) in AttributedString()
[all …]
DFieldPosition.java92 int beginIndex = 0; field in FieldPosition
175 return beginIndex; in getBeginIndex()
195 beginIndex = bi; in setBeginIndex()
234 return (beginIndex == other.beginIndex in equals()
244 return (field << 24) | (beginIndex << 16) | endIndex; in hashCode()
254 ",beginIndex=" + beginIndex + in toString()
/libcore/ojluni/src/main/java/java/lang/
DNumberFormatException.java80 int beginIndex, int endIndex, int errorIndex) { in forCharSequence() argument
82 + (errorIndex - beginIndex) + " in: \"" in forCharSequence()
83 + s.subSequence(beginIndex, endIndex) + "\""); in forCharSequence()
DInteger.java831 public static int parseInt(CharSequence s, int beginIndex, int endIndex, int radix)
835 if (beginIndex < 0 || beginIndex > endIndex || endIndex > s.length()) {
848 int i = beginIndex;
858 throw NumberFormatException.forCharSequence(s, beginIndex,
863 throw NumberFormatException.forCharSequence(s, beginIndex,
873 throw NumberFormatException.forCharSequence(s, beginIndex,
878 throw NumberFormatException.forCharSequence(s, beginIndex,
1014 public static int parseUnsignedInt(CharSequence s, int beginIndex, int endIndex, int radix)
1018 if (beginIndex < 0 || beginIndex > endIndex || endIndex > s.length()) {
1021 int start = beginIndex, len = endIndex - beginIndex;
DLong.java785 public static long parseLong(CharSequence s, int beginIndex, int endIndex, int radix) in parseLong() argument
789 if (beginIndex < 0 || beginIndex > endIndex || endIndex > s.length()) { in parseLong()
802 int i = beginIndex; in parseLong()
812 throw NumberFormatException.forCharSequence(s, beginIndex, in parseLong()
818 throw NumberFormatException.forCharSequence(s, beginIndex, in parseLong()
827 throw NumberFormatException.forCharSequence(s, beginIndex, in parseLong()
832 throw NumberFormatException.forCharSequence(s, beginIndex, in parseLong()
1031 public static long parseUnsignedLong(CharSequence s, int beginIndex, int endIndex, int radix) in parseUnsignedLong() argument
1035 if (beginIndex < 0 || beginIndex > endIndex || endIndex > s.length()) { in parseUnsignedLong()
1038 int start = beginIndex, len = endIndex - beginIndex; in parseUnsignedLong()
DString.java953 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() argument
954 if (beginIndex < 0 || beginIndex > endIndex || in codePointCount()
965 return Character.codePointCount(this, beginIndex, endIndex); in codePointCount()
2483 public String substring(int beginIndex) { in substring() argument
2484 if (beginIndex < 0) { in substring()
2485 throw new StringIndexOutOfBoundsException(this, beginIndex); in substring()
2487 int subLen = length() - beginIndex; in substring()
2489 throw new StringIndexOutOfBoundsException(this, beginIndex); in substring()
2491 if (beginIndex == 0) { in substring()
2499 return fastSubstring(beginIndex, subLen); in substring()
[all …]
DAbstractStringBuilder.java402 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() argument
403 if (beginIndex < 0 || endIndex > count || beginIndex > endIndex) { in codePointCount()
407 return endIndex - beginIndex; in codePointCount()
409 return StringUTF16.codePointCountSB(value, beginIndex, endIndex); in codePointCount()
DStringUTF16.java146 private static int codePointCount(byte[] value, int beginIndex, int endIndex, boolean checked) {
147 assert beginIndex <= endIndex;
148 int count = endIndex - beginIndex;
149 int i = beginIndex;
163 public static int codePointCount(byte[] value, int beginIndex, int endIndex) {
164 return codePointCount(value, beginIndex, endIndex, false /* unchecked */);
1542 public static int codePointCountSB(byte[] val, int beginIndex, int endIndex) {
1543 return codePointCount(val, beginIndex, endIndex, true /* checked */);
DStringBuffer.java272 public synchronized int codePointCount(int beginIndex, int endIndex) { in codePointCount() argument
273 return super.codePointCount(beginIndex, endIndex); in codePointCount()
DStringLatin1.java68 public static int codePointCount(byte[] value, int beginIndex, int endIndex) { in codePointCount() argument
69 return endIndex - beginIndex; in codePointCount()
/libcore/ojluni/src/test/java/lang/String/CompactString/
DSubString.java71 public void testSubstring(String str, int beginIndex, int endIndex, in testSubstring() argument
77 data.substring(beginIndex, endIndex), in testSubstring()
81 escapeNonASCIIs(data), beginIndex, in testSubstring()
DCodePointCount.java76 public void testCodePointCount(String str, int beginIndex, int endIndex, in testCodePointCount() argument
82 data.codePointCount(beginIndex, endIndex), in testCodePointCount()
86 escapeNonASCIIs(data), beginIndex, in testCodePointCount()
/libcore/ojluni/annotations/hiddenapi/java/lang/
DString.java125 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() argument
304 public java.lang.String substring(int beginIndex) { in substring() argument
308 public java.lang.String substring(int beginIndex, int endIndex) { in substring() argument
314 public java.lang.CharSequence subSequence(int beginIndex, int endIndex) { in subSequence() argument
DAbstractStringBuilder.java85 public int codePointCount(int beginIndex, int endIndex) { in codePointCount() argument
/libcore/ojluni/src/main/java/sun/nio/fs/
DUnixPath.java340 public UnixPath subpath(int beginIndex, int endIndex) { in subpath() argument
343 if (beginIndex < 0) in subpath()
345 if (beginIndex >= offsets.length) in subpath()
349 if (beginIndex >= endIndex) { in subpath()
354 int begin = offsets[beginIndex]; in subpath()
/libcore/ojluni/annotations/sdk/nullability/java/lang/
DString.annotated.java84 public int codePointCount(int beginIndex, int endIndex) { throw new RuntimeException("Stub!"); } in codePointCount() argument
138 @libcore.util.NonNull public java.lang.String substring(int beginIndex) { throw new RuntimeExceptio… in substring() argument
140 @libcore.util.NonNull public java.lang.String substring(int beginIndex, int endIndex) { throw new R… in substring() argument
142 @libcore.util.NonNull public java.lang.CharSequence subSequence(int beginIndex, int endIndex) { thr… in subSequence() argument
DInteger.annotated.java56 public static int parseInt(@libcore.util.NonNull java.lang.CharSequence s, int beginIndex, int endI… in parseInt() argument
62 public static int parseUnsignedInt(@libcore.util.NonNull java.lang.CharSequence s, int beginIndex, … in parseUnsignedInt() argument
DLong.annotated.java57 public static long parseLong(@libcore.util.NonNull java.lang.CharSequence s, int beginIndex, int en… in parseLong() argument
63 public static long parseUnsignedLong(@libcore.util.NonNull java.lang.CharSequence s, int beginIndex in parseUnsignedLong() argument
DStringBuffer.annotated.java57 public synchronized int codePointCount(int beginIndex, int endIndex) { throw new RuntimeException("… in codePointCount() argument
/libcore/ojluni/src/main/java/java/nio/file/
DPath.java329 Path subpath(int beginIndex, int endIndex); in subpath() argument
/libcore/ojluni/src/test/java/lang/StringBuffer/
DSupplementary.java352 static void testCodePointCount(StringBuffer sb, int beginIndex, int endIndex, in testCodePointCount() argument
355 int n = sb.codePointCount(beginIndex, endIndex); in testCodePointCount()
/libcore/ojluni/src/test/java/lang/StringBuilder/
DSupplementary.java367 static void testCodePointCount(StringBuilder sb, int beginIndex, int endIndex, in testCodePointCount() argument
370 int n = sb.codePointCount(beginIndex, endIndex); in testCodePointCount()
/libcore/ojluni/annotations/hiddenapi/java/util/regex/
DMatcher.java183 java.lang.CharSequence getSubSequence(int beginIndex, int endIndex) { in getSubSequence() argument
/libcore/ojluni/src/main/java/java/util/regex/
DMatcher.java1782 CharSequence getSubSequence(int beginIndex, int endIndex) { in getSubSequence() argument
1783 return text.subSequence(beginIndex, endIndex); in getSubSequence()
/libcore/ojluni/src/test/java/lang/Character/
DSupplementary.java819 private static void callCodePointCount(Object data, int beginIndex, int endIndex, in callCodePointCount() argument
824 Character.codePointCount((CharSequence) data, beginIndex, endIndex) in callCodePointCount()
825 : Character.codePointCount((char[]) data, beginIndex, endIndex); in callCodePointCount()

12