/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
D | CharUtilsTest.java | 201 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/ |
D | CharUtils.java | 130 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/ |
D | SegmentSharingTest.kt | 43 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/ |
D | Utf8.kt | 265 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/ |
D | CreateInstance.kt | 35 Char::class -> 0.toChar() as T in createInstance()
|
/external/flatbuffers/kotlin/flatbuffers-kotlin/src/commonMain/kotlin/com/google/flatbuffers/kotlin/ |
D | Utf8.kt | 112 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()
|
D | JSON.kt | 588 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/ |
D | JSONTest.kt | 173 assertEquals(0.toChar().toString(), ref.toString()) in testStrings() 177 assertEquals(0x21.toChar().toString(), ref.toString()) in testStrings()
|
/external/antlr/runtime/ObjC/Framework/ |
D | Lexer.h | 73 - (void) matchRangeFromChar:(unichar)fromChar to:(unichar)toChar;
|
D | Lexer.m | 272 - (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/ |
D | LottieFontViewGroup.kt | 138 val letter = "" + Character.toUpperCase(event.unicodeChar.toChar()) in onKeyUp()
|
/external/okio/okio/src/commonTest/kotlin/okio/ |
D | AbstractBufferedSinkTest.kt | 222 assertEquals('a', data.readByte().toChar()) in closeEmitsBufferedBytes()
|
D | CommonOptionsTest.kt | 426 out.append(trie[offset + 2 + i].toChar()) in Options()
|
/external/kotlinpoet/docs/ |
D | index.md | 534 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()")
|