Module function

Module function 

Source
Expand description

Would-be-getter renaming rules definition.

Enums§

RenameError
Would-be-getter rename attempt failure result.

Constants§

BOOL_ABLE_PREFIX
Special suffix to detect getters returning a bool.

Statics§

BOOL_EXACT_SUBSTITUTES
Substitutes of bool getter to be used when the suffix matches exactly.
BOOL_FIRST_TOKEN_NO_PREFIX
Set of bool getter suffix first tokens for which no be prefix should be applied.
BOOL_FIRST_TOKEN_SUBSTITUTES
Substitutes for tokens of bool getters.
EXACT_SUFFIX_SUBSTITUTES
Substitutes to be used when the suffix matches exactly.
PREFIX_TO_POSTFIX
Getters prefix to move to the end.
RESERVED
Getters reserved suffix list.

Functions§

guesstimate_boolness_then_rename
Attempts to determine whether the getter returns a bool from its name.
rename_bool_getter
Applies bool getter name rules.
try_rename_getter_suffix
Attempts to apply getter name rules to this getter suffix.
try_rename_would_be_getter
Attempts to apply getter name rules to this would-be-getter function.