Searched refs:usedCharacters (Results 1 – 2 of 2) sorted by relevance
/packages/apps/Email/src/org/apache/james/mime4j/codec/ |
D | EncoderUtil.java | 195 int usedCharacters) { in encodeIfNecessary() argument 196 if (hasToBeEncoded(text, usedCharacters)) in encodeIfNecessary() 197 return encodeEncodedWord(text, usage, usedCharacters); in encodeIfNecessary() 216 public static boolean hasToBeEncoded(String text, int usedCharacters) { in hasToBeEncoded() argument 219 if (usedCharacters < 0 || usedCharacters > MAX_USED_CHARACTERS) in hasToBeEncoded() 222 int nonWhiteSpaceCount = usedCharacters; in hasToBeEncoded() 292 int usedCharacters) { in encodeEncodedWord() argument 293 return encodeEncodedWord(text, usage, usedCharacters, null, null); in encodeEncodedWord() 321 int usedCharacters, Charset charset, Encoding encoding) { in encodeEncodedWord() argument 324 if (usedCharacters < 0 || usedCharacters > MAX_USED_CHARACTERS) in encodeEncodedWord() [all …]
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/internet/ |
D | MimeUtility.java | 97 public static String foldAndEncode2(String s, int usedCharacters) { in foldAndEncode2() argument 104 usedCharacters); in foldAndEncode2() 106 return fold(encoded, usedCharacters); in foldAndEncode2() 128 public static String fold(String s, int usedCharacters) { in fold() argument 132 if (usedCharacters + length <= maxCharacters) in fold() 137 int lastLineBreak = -usedCharacters; in fold()
|