Helpers
final class Helpers
Helpers.
Methods
No description
StrToLower in UTF-8.
Translate all white spaces (\t \n \r space) to meta-spaces \x01-\x04.
Reverts meta-spaces back to normal spaces.
Removes special controls characters and normalizes line endings and spaces.
Converts UTF-8 to ASCII.
Converts to web safe characters [a-z0-9-] text.
Outdents text block.
Is given URL relative?
Prepends root to URL, if possible.
Details
at line 20
__construct()
No description
at line 29
static
toLower($s)
StrToLower in UTF-8.
at line 39
static string
freezeSpaces(string $s)
Translate all white spaces (\t \n \r space) to meta-spaces \x01-\x04.
which are ignored by TexyHtmlOutputModule routine
at line 48
static string
unfreezeSpaces(string $s)
Reverts meta-spaces back to normal spaces.
at line 57
static string
normalize(string $s)
Removes special controls characters and normalizes line endings and spaces.
at line 80
static string
toAscii(string $s)
Converts UTF-8 to ASCII.
iconv('UTF-8', 'ASCII//TRANSLIT', ...) has problem with glibc!
at line 99
static string
webalize(string $s, string $charlist = '')
Converts to web safe characters [a-z0-9-] text.
at line 112
static string
outdent(string $s, bool $firstLine = false)
Outdents text block.
at line 133
static bool
isRelative(string $URL)
Is given URL relative?
at line 143
static string
prependRoot(string $URL, string $root)
Prepends root to URL, if possible.
Traits
Better OOP experience.