Documentation ¶
Overview ¶
Package strings implements simple functions to manipulate UTF-8 encoded strings that are not included in the standard library package.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CamelCase ¶
CamelCase is a special case of PascalCase with the difference that CamelCase will return the first value in the string as a lowercase character. In short, _my_field_name_2 becomes xMyFieldName_2.
func PascalCase ¶
PascalCase returns the PascalCased name. If there is an interior underscore followed by a lower case letter, drop the underscore and convert the letter to upper case. There is a remote possibility of this rewrite causing a name collision, but it's so remote we're prepared to pretend it's nonexistent - since the C++ generator lowercases names, it's extremely unlikely to have two fields with different capitalizations. In short, _my_field_name_2 becomes XMyFieldName_2.
Types ¶
This section is empty.