Lines Matching defs:string
23 * Returns the byte length of a null terminated UTF string, not including
26 * @param bytes the data containing the UTF string.
28 * @param offset the beginning of the string the measure.
45 * Returns the byte length of the UTF string that would be created by
58 * Returns the byte length of the UTF string that would be created by
87 * Returns the number of characters represented by the given UTF string.
89 * @param bytes the UTF string.
106 * Returns the number of characters represented by the given UTF string.
108 * @param bytes the data containing the UTF string.
247 * @return the string.
268 * @param string the string to convert.
272 public static byte[] stringToBytes(String string) {
274 if (string.length() == 0) return EMPTY_BYTES;
275 char[] chars = string.toCharArray();