Bindgen::Util
Constants
Matches back-references in strings.
Matches strings with balanced parentheses. (http://www.pcre.org/original/doc/html/pcrepattern.html#SEC23)
Matches absolutely nothing, not even the empty string.
Class methods
Formats the bytes amount as nice string.
Mangles the class template instantiation cpp_name into a valid
identifier, e.g. Foo<int, -1> into Foo_int_Neg1.
Mangles the type name of full_type_name for the binding function:
- A pointer-star is turned into
X - A reference-ampersand is turned into
R - Any non-word character is replaced with
_
Mangles a list of type-names into a combined string.
Using the rewrite pattern, containing back-references, builds a new
string. If pattern is nil, then groups[1], then groups[0] is
returned (Whichever is non-nil first).
Replaces back-references in strings with captures from an existing
Array(String) or Regex::MatchData.
Templates the string haystack, replacing occurences of % with
replacement. If replacement is nil, this behaviour is disabled.
The user can also access environment variables using the syntax {NAME},
with NAME being the variable name. A default fallback, in case the
NAME is unset, can be provided through a pipe symbol: {NAME|default}.
It's possible to fall back to the character expansion: {NAME|%}
Is cpp_name a class template instantiation, like Foo<int>?