Parser: default parser from string to special type
Used specially for CSS
Parse a filename to load an image ro svg
Parse a text color to a pymt color. Format supported are : * rgb(r, g, b) * rgba(r, g, b, a) * #aaa * #rrggbb
alias of int
alias of float
Parse a string to a string (remove quotes and double-quotes)
Parse a string to a boolean
Parse a string to a integer with exactly 2 number
>>> print parse_int2("12 54")
12, 54
Parse a string to a float with exactly 4 floats
>>> parse_float4('54 87. 35 0')
54, 87., 35, 0