Dotty Documentation

0.1.1-bin-SNAPSHOT

object NameTransformer

Provides functions to encode and decode Scala symbolic names.

[-] Constructors

[-] Members

[+] private val nops : Int
[+] @sharable private val op2code : Array [ String ]
[+] @sharable private val str2op : HashMap [ String, Char ]
[+] def avoidIllegalChars ( name: SimpleName ) : SimpleName

Expand characters that are illegal as JVM method names by $u, followed by the character's unicode expansion.

[+] def decode ( name: SimpleName ) : SimpleName

Replace operator expansions by the operators themselves. Operator expansions are only recognized if they make up the whole name, or if they make up the last part of the name which follows a _.

[+] def encode ( name: SimpleName ) : SimpleName

Replace operator symbols by corresponding expansion strings.

[+] private def enterOp ( op: Char , code: String ) : Unit