Simplifies a given value.
Parameters: |
|
---|
Concatenates words of the identifier by underscore ('_').
>>> under_scores('key name')
'key_name'
>>> under_scores('encode URL')
'encode_url'
Note
Use this function for simplify() function’s identifier_map option.
Makes the identifier PascalCase.
>>> PascalCase('key name')
'KeyName'
>>> PascalCase('encode URL')
'EncodeURL'
Note
Use this function for simplify() function’s identifier_map option.
Makes the identifier camelCase.
>>> camelCase('key name')
'keyName'
>>> camelCase('encode URL')
'encodeUrl'
>>> camelCase('URL encoder')
'urlEncoder'
Note
Use this function for simplify() function’s identifier_map option.
Warning
Internal use only. Use simplify() instead.
The function that really implements simplification per types, without simplify()‘s type_map option.
Parameters: |
|
---|