Functions | |
| def | _is_camel_case_boundary (prev, char, next) |
| def | _roundup (number, ndigits) |
| def | _split_camel_case (string) |
| def | plural_or_not (item) |
| def | printable_name (string, code_style=False) |
| Generates and returns printable name from the given string. More... | |
| def | roundup (number, ndigits=0, return_type=None) |
| Rounds number to the given number of digits. More... | |
| def | seq2str (sequence, quote="'", sep=', ', lastsep=' and ') |
| Returns sequence in format ‘'item 1’, 'item 2' and 'item 3'`. More... | |
| def | seq2str2 (sequence) |
Returns sequence in format [ item 1 | item 2 | ... More... | |
Variables | |
| _roundup | |
|
private |
|
private |
|
private |
| def robotide.lib.robot.utils.misc.printable_name | ( | string, | |
code_style = False |
|||
| ) |
Generates and returns printable name from the given string.
Examples: 'simple' -> 'Simple' 'name with spaces' -> 'Name With Spaces' 'more spaces' -> 'More Spaces' 'Cases AND spaces' -> 'Cases AND Spaces' '' -> '' If 'code_style' is True: 'mixedCAPSCamel' -> 'Mixed CAPS Camel' 'camelCaseName' -> 'Camel Case Name' 'under_score_name' -> 'Under Score Name' 'under_and space' -> 'Under And Space' 'miXed_CAPS_nAMe' -> 'MiXed CAPS NAMe' '' -> ''
| def robotide.lib.robot.utils.misc.roundup | ( | number, | |
ndigits = 0, |
|||
return_type = None |
|||
| ) |
Rounds number to the given number of digits.
Numbers equally close to a certain precision are always rounded away from zero. By default return value is float when ``ndigits`` is positive and int otherwise, but that can be controlled with ``return_type``. With the built-in ``round()`` rounding equally close numbers as well as the return type depends on the Python version.
| def robotide.lib.robot.utils.misc.seq2str | ( | sequence, | |
quote = "'", |
|||
sep = ', ', |
|||
lastsep = ' and ' |
|||
| ) |
| def robotide.lib.robot.utils.misc.seq2str2 | ( | sequence | ) |