package
0.1.0
Repository: https://github.com/hfmrow/gen_lib.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author

# Functions

FormatText: Format words text to fit (column/windows with limited width) "max" chars.
FormatTextParagraphFormatting:.
An unwanted behavior may occur on string where word's length > max...
GetFileEOL: Open file and get (CR, LF, CRLF) > string or get OS line end.
GetOsLineEnd: Get current OS line-feed.
GetTextEOL: Get EOL from text bytes (CR, LF, CRLF).
HtmlEscOrUnEsc: Escape or unescape to/from html, usefull for pango too.
LowercaseAtFirst: true if 1st char is lowercase.
RemoveDupSpace: Remove duplicated space/tab in string.
RemoveNonAlNum: Remove all non alpha-numeric char.
RemoveNonNum: Remove all non numeric char.
RemoveSpace: remove all [[:space::]].
ReplacePunct: replace all [[:punct::]] with 'repl'.
ReplaceSpace: replace all [[:space::]] with 'repl'.
SeparateUpper: Add a 'sep' before each upper case char except the first.
SetFileEOL: Open file and convert EOL (CR, LF, CRLF) then write it back.
SetTextEOL: Get EOL from text bytes and convert it to another EOL (CR, LF, CRLF).
SplitNumeric: Split and keep all numeric values in a string.
toCamel: Turn string into camelCase or PascalCase style (Go).
toKebab: Turn string into kebab-case style (URLs).
toSnake: Turn string into snake_case style (C).
TruncateString: Reduce string length for display (prefix is separator like: "...", option=0 -> put separator at the begining of output string.
UnEscapedStr: Convert raw string that contain escaped values to literal string.
UnEscapeString: Convert raw string that contain escaped values to literal string.
UnescapeToUtf8: Convert raw string that contain escaped values to utf-8 literal string.

# Constants

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author