blob: 75b3b8ec69adfa7b0d1d30870a6953b8b7718341 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
package org.jetbrains.dokka.dokkatoo.internal
/**
* Title case the first char of a string.
*
* (Custom implementation because [uppercase] is deprecated, and Dokkatoo should try and be as
* stable as possible.)
*/
internal fun String.uppercaseFirstChar(): String =
if (isNotEmpty()) Character.toTitleCase(this[0]) + substring(1) else this
|