Home
last modified time | relevance | path

Searched refs:toChar (Results 1 – 14 of 14) sorted by relevance

/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/
DCharUtilsTest.java201 assertEquals('A', CharUtils.toChar(CHARACTER_A));
202 assertEquals('B', CharUtils.toChar(CHARACTER_B));
203 assertThrows(NullPointerException.class, () -> CharUtils.toChar((Character) null));
208 assertEquals('A', CharUtils.toChar(CHARACTER_A, 'X'));
209 assertEquals('B', CharUtils.toChar(CHARACTER_B, 'X'));
210 assertEquals('X', CharUtils.toChar((Character) null, 'X'));
215 assertEquals('A', CharUtils.toChar("A"));
216 assertEquals('B', CharUtils.toChar("BA"));
217 assertThrows(NullPointerException.class, () -> CharUtils.toChar((String) null));
218 assertThrows(IllegalArgumentException.class, () -> CharUtils.toChar(""));
[all …]
/external/apache-commons-lang/src/main/java/org/apache/commons/lang3/
DCharUtils.java130 public static char toChar(final Character ch) { in toChar() method in CharUtils
147 public static char toChar(final Character ch, final char defaultValue) { in toChar() method in CharUtils
167 public static char toChar(final String str) { in toChar() method in CharUtils
187 public static char toChar(final String str, final char defaultValue) { in toChar() method in CharUtils
250 return toIntValue(toChar(ch)); in toIntValue()
/external/okio/okio/src/jvmTest/kotlin/okio/
DSegmentSharingTest.kt43 assertEquals('x', byteString[0].toChar()) in snapshotGetByte()
44 assertEquals('x', byteString[xs.length - 1].toChar()) in snapshotGetByte()
45 assertEquals('y', byteString[xs.length].toChar()) in snapshotGetByte()
46 assertEquals('y', byteString[xs.length + ys.length - 1].toChar()) in snapshotGetByte()
47 assertEquals('z', byteString[xs.length + ys.length].toChar()) in snapshotGetByte()
48 assertEquals('z', byteString[xs.length + ys.length + zs.length - 1].toChar()) in snapshotGetByte()
/external/okio/okio/src/commonMain/kotlin/okio/
DUtf8.kt265 yield(b0.toChar()) in processUtf16Chars()
271 yield(this[index++].toChar()) in processUtf16Chars()
276 index += process2Utf8Bytes(index, endIndex) { yield(it.toChar()) } in processUtf16Chars()
280 index += process3Utf8Bytes(index, endIndex) { yield(it.toChar()) } in processUtf16Chars()
290 yield(((codePoint ushr 10 ) + HIGH_SURROGATE_HEADER).toChar()) in processUtf16Chars()
292 yield(((codePoint and 0x03ff) + LOG_SURROGATE_HEADER).toChar()) in processUtf16Chars()
/external/mockito-kotlin/mockito-kotlin/src/main/kotlin/org/mockito/kotlin/internal/
DCreateInstance.kt35 Char::class -> 0.toChar() as T in createInstance()
/external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/
DUtf8.kt112 resultArr[resultPos] = byte1.toChar() in encodedLength()
129 resultArr[resultPos] = (byte1.toInt() and 0x1F shl 6 or trailingByteValue(byte2)).toChar() in handleTwoBytes()
147 …1.toInt() and 0x0F shl 12 or (trailingByteValue(byte2) shl 6) or trailingByteValue(byte3)).toChar() in handleThreeBytes()
DJSON.kt588 var result: Char = 0.toChar() in readEscapedChar()
593 result = (result.toInt() shl 4).toChar() in readEscapedChar()
608 CHAR_f -> 12.toChar() // '\f' in readEscapedChar()
609 CHAR_DOUBLE_QUOTE, CHAR_BACKSLASH, CHAR_FORWARDSLASH -> byte1.toChar() in readEscapedChar()
/external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonTest/kotlin/com/google/flatbuffers/kotlin/
DJSONTest.kt173 assertEquals(0.toChar().toString(), ref.toString()) in testStrings()
177 assertEquals(0x21.toChar().toString(), ref.toString()) in testStrings()
/external/antlr/runtime/ObjC/Framework/
DLexer.h73 - (void) matchRangeFromChar:(unichar)fromChar to:(unichar)toChar;
DLexer.m272 - (void) matchRangeFromChar:(unichar)fromChar to:(unichar)toChar
275 if ( charLA < fromChar || charLA > toChar ) {
281 newException:NSMakeRange((NSUInteger)fromChar,(NSUInteger)toChar)
/external/lottie/sample/src/main/kotlin/com/airbnb/lottie/samples/
DLottieFontViewGroup.kt138 val letter = "" + Character.toUpperCase(event.unicodeChar.toChar()) in onKeyUp()
/external/okio/okio/src/commonTest/kotlin/okio/
DAbstractBufferedSinkTest.kt222 assertEquals('a', data.readByte().toChar()) in closeEmitsBufferedBytes()
DCommonOptionsTest.kt426 out.append(trie[offset + 2 + i].toChar()) in Options()
/external/kotlinpoet/docs/
Dindex.md534 return (if (i < 10) i + '0'.toInt() else i - 10 + 'a'.toInt()).toChar()
545 .addStatement("return (if (i < 10) i + '0'.toInt() else i - 10 + 'a'.toInt()).toChar()")