Lines Matching refs:offset
912 public static int getOffsetBefore(CharSequence text, int offset) {
913 if (offset == 0)
915 if (offset == 1)
918 char c = text.charAt(offset - 1);
921 char c1 = text.charAt(offset - 2);
924 offset -= 2;
926 offset -= 1;
928 offset -= 1;
932 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset,
939 if (start < offset && end > offset)
940 offset = start;
944 return offset;
947 public static int getOffsetAfter(CharSequence text, int offset) {
950 if (offset == len)
952 if (offset == len - 1)
955 char c = text.charAt(offset);
958 char c1 = text.charAt(offset + 1);
961 offset += 2;
963 offset += 1;
965 offset += 1;
969 ReplacementSpan[] spans = ((Spanned) text).getSpans(offset, offset,
976 if (start < offset && end > offset)
977 offset = end;
981 return offset;
1514 * Determine what caps mode should be in effect at the current offset in