Lines Matching refs:s
33 int s = 0; in decode() local
37 return new String(out, 0, s); in decode()
39 out[s] = a; in decode()
41 s++; in decode()
47 out[s++] = (char) (((a & 0x1F) << 6) | (b & 0x3F)); in decode()
54 out[s++] = (char) (((a & 0x0F) << 12) | ((b & 0x3F) << 6) | (c & 0x3F)); in decode()
64 private static long countBytes(String s, boolean shortLength) throws UTFDataFormatException { in countBytes() argument
66 final int length = s.length(); in countBytes()
68 char ch = s.charAt(i); in countBytes()
87 public static void encode(byte[] dst, int offset, String s) { in encode() argument
88 final int length = s.length(); in encode()
90 char ch = s.charAt(i); in encode()
107 public static byte[] encode(String s) throws UTFDataFormatException { in encode() argument
108 int utfCount = (int) countBytes(s, true); in encode()
110 encode(result, 0, s); in encode()