string-notation / de.joshuagleitze.stringnotation

Package de.joshuagleitze.stringnotation

Types

BaseStringNotation

Base class for implementing string notations.

abstract class BaseStringNotation : StringNotation

JavaConstantName

A notation for static final fields in Java. This notation is like ScreamingSnakeCase, but when printing, it will drop any character that is not allowed in a Java identifier. If the result is a Java keyword, _ will be appended to it.

object JavaConstantName : StringNotation

JavaMemberName

A notation for java member names. This notation is like LowerCamelCase, but when printing, it will drop any character that is not allowed in a Java identifier. If the result is a Java keyword, _ will be appended to it.

object JavaMemberName : BaseStringNotation

JavaPackageName

A notation for whole java packages. When printing parts, it will drop any character that is not allowed in a Java identifier. If the result is a Java keyword, _ will be appended to it.

object JavaPackageName : BaseStringNotation

JavaPackagePart

A notation for java package parts. When printing, it simply concatenates all word parts and drops any character that is not allowed in a Java identifier. If the result is a Java keyword, _ will be appended to it. When parsing, the notation will recognise word parts both in the LowerCamelCase and the SnakeCase notation. However, neither notation is conventional and parsing will usually yield only one word part on real-world inputs.

object JavaPackagePart : BaseStringNotation

JavaTypeName

A notation for Java type names. This notation is like UpperCamelCase, but when printing, it will drop any character that is not allowed in a Java identifier. If the result is a Java keyword, _ will be appended to it.

object JavaTypeName : StringNotation

LowerCamelCase

The lowerCamelCase notation.

object LowerCamelCase : BaseStringNotation

NormalWords

Notation for words written like in normal language. Parsing will recognise all substrings that are separated by one or more characters of whitespace as a part. Printing will print the parts separated by one space.

object NormalWords : BaseStringNotation

ScreamingSnakeCase

The SCREAMING_SNAKE_CASE notation.

object ScreamingSnakeCase : BaseStringNotation

SnakeCase

The snake_case notation.

object SnakeCase : BaseStringNotation

StringNotation

A convention for representing Words.

interface StringNotation

UpperCamelCase

The UpperCamelCase notation.

object UpperCamelCase : BaseStringNotation

Word

A notation-agnostic representation of a string. This is a “word” in the sense of “word over the Unicode alphabet”, not in the sense of a word in any spoken language. A Word consists of parts.

class Word

Extensions for External Classes

kotlin.String