Documentation
¶
Overview ¶
Package sceners provides functions for cleaning and formatting the scene names and titles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Clean ¶
Clean fixes the malformed string. This includes the removal of duplicate spaces and the stripping of incompatible characters. The removal of excess whitespace and if found "The " prefix from BBS and FTP named sites.
Example:
Clean(" Defacto2 demo group.") = "Defacto2 Demo Group"
Clean("the x bbs") = "X BBS"
Clean("The X Ftp") = "X FTP"
func Humanize ¶
Humanize deobfuscates the URL path and returns the formatted, human-readable group name. The path is expected to be in the format of a URL path without the scheme or domain.
Example:
Humanize("defacto2") = "Defacto2"
Humanize("razor-1911-demo") = "Razor 1911 Demo"
Humanize("razor-1911-demo-ampersand-skillion") = "Razor 1911 Demo & Skillion"
Humanize("north-american-pirate_phreak-association") = "North American Pirate-Phreak Association"
Humanize("razor-1911-demo*trsi") = "Razor 1911 Demo, TRSi"
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package rename provides functions for cleaning and formatting strings of known words and group names.
|
Package rename provides functions for cleaning and formatting strings of known words and group names. |
|
Package str provides functions for removing unwanted characters from strings.
|
Package str provides functions for removing unwanted characters from strings. |
Click to show internal directories.
Click to hide internal directories.