Companion

object Companion

Functions

Link copied to clipboard
fun circledNumberCodePoint(number: Int): Int

Answer the Unicode codepoint for a circled number with the given numeric value. The values for which values are available in Unicode are 0..50.

Link copied to clipboard
fun constantForIndex(index: Int): AvailObject

Answer the AvailObject having the given one-based index in the static constantsList.

Link copied to clipboard
fun indexForConstant(constant: A_BasicObject): Int

Answer the index of the given constant, adding it to the global constantsList and constantsMap} if necessary.

Link copied to clipboard
fun indexForPermutation(permutation: A_Tuple): Int

Answer the index of the given permutation (tuple of integers), adding it to the global permutations tuple if necessary.

Link copied to clipboard
fun isOperator(cp: Int): Boolean

Answer whether the given Unicode codePoint is an acceptable operator.

Link copied to clipboard
fun isUnderscoreOrSpaceOrOperator(cp: Int): Boolean

Answer whether the specified character is an operator character, space, underscore, or ellipsis.

Link copied to clipboard
fun permutationAtIndex(index: Int): AvailObject

Answer the permutation having the given one-based index. We need a read barrier here, but no lock, since the tuple of tuples is only appended to, ensuring all extant indices will always be valid.

Link copied to clipboard
fun split(messageName: A_String): MessageSplitter

The public factory for splitting message names. The result may be cached in an LRUCache. Since the messageName is used as a key in the cache, we force it to be SHARED here.

Link copied to clipboard
fun throwMalformedMessageException(errorCode: AvailErrorCode, errorMessage: String): Nothing

Throw a MalformedMessageException with the given error code.

Link copied to clipboard
fun throwSignatureException(errorCode: AvailErrorCode): Nothing

Throw a SignatureException with the given error code.

Properties

Link copied to clipboard
val circledNumbersMap: Map<Int, Int>

A map from the Unicode code points for the circled number characters found in various regions of the Unicode code space.

Link copied to clipboard
val indexForFalse: Int

The position at which false is stored in the constantsList.

Link copied to clipboard
val indexForTrue: Int

The position at which true is stored in the constantsList.

Link copied to clipboard
val possibleErrors: A_Set

The set of all errors that can happen during message splitting.