Chars

dotty.tools.dotc.util.Chars$
object Chars

Contains constants and classifier methods for characters

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Chars.type

Members list

Type members

Types

type CodePoint = Int

Value members

Concrete methods

Convert a character to a backslash-u escape

Convert a character to a backslash-u escape

Attributes

def digit2int(ch: Char, base: Int): Int

Convert a character digit to an Int according to given base, -1 if no success

Convert a character digit to an Int according to given base, -1 if no success

Attributes

Can character form part of an alphanumeric Scala identifier?

Can character form part of an alphanumeric Scala identifier?

Attributes

Can character start an alphanumeric Scala identifier?

Can character start an alphanumeric Scala identifier?

Attributes

Is character a line break?

Is character a line break?

Attributes

Can character form part of a Scala operator name?

Can character form part of a Scala operator name?

Attributes

Is character a math or other symbol in Unicode?

Is character a math or other symbol in Unicode?

Attributes

def isSpecial(codePoint: CodePoint): Boolean

Can character form part of a doc comment variable $xxx?

Can character form part of a doc comment variable $xxx?

Attributes

Is character a whitespace character (but not a new line)?

Is character a whitespace character (but not a new line)?

Attributes

Would the character be encoded by NameTransformer.encode?

Would the character be encoded by NameTransformer.encode?

Attributes

Concrete fields

inline val CR: '\r'
inline val FF: '\f'
inline val LF: '\n'
inline val SU: '\u001a'