Lines Matching defs:offset
930 public static int getOffsetBefore(CharSequence text, int offset) {
931 if (offset == 0)
933 if (offset == 1)
936 char c = text.charAt(offset - 1);
939 char c1 = text.charAt(offset - 2);
942 offset -= 2;
944 offset -= 1;
946 offset -= 1;
950 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset,
957 if (start < offset && end > offset)
958 offset = start;
962 return offset;
965 public static int getOffsetAfter(CharSequence text, int offset) {
968 if (offset == len)
970 if (offset == len - 1)
973 char c = text.charAt(offset);
976 char c1 = text.charAt(offset + 1);
979 offset += 2;
981 offset += 1;
983 offset += 1;
987 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset,
994 if (start < offset && end > offset)
995 offset = end;
999 return offset;
1534 * Determine what caps mode should be in effect at the current offset in