Codechange: replace C-style strings with C++-style strings in textfile (#10772)
This commit is contained in:
@@ -47,8 +47,14 @@ static const WChar CHAR_TD_PDF = 0x202C; ///< Restore the text-direction state t
|
||||
enum StringValidationSettings {
|
||||
SVS_NONE = 0, ///< Allow nothing and replace nothing.
|
||||
SVS_REPLACE_WITH_QUESTION_MARK = 1 << 0, ///< Replace the unknown/bad bits with question marks.
|
||||
SVS_ALLOW_NEWLINE = 1 << 1, ///< Allow newlines.
|
||||
SVS_ALLOW_NEWLINE = 1 << 1, ///< Allow newlines; replaces '\r\n' with '\n' during processing.
|
||||
SVS_ALLOW_CONTROL_CODE = 1 << 2, ///< Allow the special control codes.
|
||||
/**
|
||||
* Replace tabs ('\t'), carriage returns ('\r') and newlines ('\n') with spaces.
|
||||
* When #SVS_ALLOW_NEWLINE is set, a '\n' or '\r\n' combination are not replaced with a space. A lone '\r' is replaced with a space.
|
||||
* When #SVS_REPLACE_WITH_QUESTION_MARK is set, this replacement runs first.
|
||||
*/
|
||||
SVS_REPLACE_TAB_CR_NL_WITH_SPACE = 1 << 3,
|
||||
};
|
||||
DECLARE_ENUM_AS_BIT_SET(StringValidationSettings)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user