sway_types

Module style

Source

Functionsยง

  • Detect whether a name is written in SCREAMING_SNAKE_CASE.
  • Detect whether an name is written in snake_case.
  • Detect whether a name is written in UpperCamelCase.
  • Convert a name into SCREAMING_SNAKE_CASE. This is a best-guess at what the name would look like if it were expressed in the correct style.
  • Convert an identifier into snake_case. This is a best-guess at what the name would look like if it were expressed in the correct style.
  • Convert an identifier into UpperCamelCase. This is a best-guess at what the identifier would look like if it were expressed in the correct style.