Searched refs:truncateStringForUtf8Storage (Results 1 – 3 of 3) sorted by relevance
258 assertThat(Utils.truncateStringForUtf8Storage("abc", 0)).isEmpty(); in truncateUtf8_toZeroLength_isEmpty()270 String result = Utils.truncateStringForUtf8Storage(initial, n); in truncateUtf8_longCase_isExpectedResult()290 assertThat(Utils.truncateStringForUtf8Storage(s, 100)).isEqualTo(s); in truncateUtf8_untruncatedString_isEqual()305 assertThat(Utils.truncateStringForUtf8Storage(builder.toString(), 3)).isEqualTo(beginning); in truncateUtf8_inMiddleOfSurrogate_isStillUtf8()317 assertThat(Utils.truncateStringForUtf8Storage(builder.toString(), 3)).isEqualTo(beginning); in truncateUtf8_inMiddleOfChar_isStillUtf8()322 Utils.truncateStringForUtf8Storage("abc", -1); in truncateUtf8_toNegativeSize_ThrowsException()
348 Utils.truncateStringForUtf8Storage( in setName()
1300 public static String truncateStringForUtf8Storage(String str, int maxbytes) { in truncateStringForUtf8Storage() method in Utils