Codechange: automatic adding of _t to (u)int types, and WChar to char32_t
for i in `find src -type f|grep -v 3rdparty/fmt|grep -v 3rdparty/catch2|grep -v 3rdparty/opengl|grep -v stdafx.h`; do sed 's/uint16& /uint16 \&/g;s/int8\([ >*),;[]\)/int8_t\1/g;s/int16\([ >*),;[]\)/int16_t\1/g;s/int32\([ >*),;[]\)/int32_t\1/g;s/int64\([ >*),;[]\)/int64_t\1/g;s/ uint32(/ uint32_t(/g;s/_uint8_t/_uint8/;s/Uint8_t/Uint8/;s/ft_int64_t/ft_int64/g;s/uint64$/uint64_t/;s/WChar/char32_t/g;s/char32_t char32_t/char32_t WChar/' -i $i; done
This commit is contained in:
@@ -35,13 +35,13 @@ typedef char32_t WChar;
|
||||
|
||||
/* The following are directional formatting codes used to get the LTR and RTL strings right:
|
||||
* http://www.unicode.org/unicode/reports/tr9/#Directional_Formatting_Codes */
|
||||
static const WChar CHAR_TD_LRM = 0x200E; ///< The next character acts like a left-to-right character.
|
||||
static const WChar CHAR_TD_RLM = 0x200F; ///< The next character acts like a right-to-left character.
|
||||
static const WChar CHAR_TD_LRE = 0x202A; ///< The following text is embedded left-to-right.
|
||||
static const WChar CHAR_TD_RLE = 0x202B; ///< The following text is embedded right-to-left.
|
||||
static const WChar CHAR_TD_LRO = 0x202D; ///< Force the following characters to be treated as left-to-right characters.
|
||||
static const WChar CHAR_TD_RLO = 0x202E; ///< Force the following characters to be treated as right-to-left characters.
|
||||
static const WChar CHAR_TD_PDF = 0x202C; ///< Restore the text-direction state to before the last LRE, RLE, LRO or RLO.
|
||||
static const char32_t CHAR_TD_LRM = 0x200E; ///< The next character acts like a left-to-right character.
|
||||
static const char32_t CHAR_TD_RLM = 0x200F; ///< The next character acts like a right-to-left character.
|
||||
static const char32_t CHAR_TD_LRE = 0x202A; ///< The following text is embedded left-to-right.
|
||||
static const char32_t CHAR_TD_RLE = 0x202B; ///< The following text is embedded right-to-left.
|
||||
static const char32_t CHAR_TD_LRO = 0x202D; ///< Force the following characters to be treated as left-to-right characters.
|
||||
static const char32_t CHAR_TD_RLO = 0x202E; ///< Force the following characters to be treated as right-to-left characters.
|
||||
static const char32_t CHAR_TD_PDF = 0x202C; ///< Restore the text-direction state to before the last LRE, RLE, LRO or RLO.
|
||||
|
||||
/** Settings for the string validation. */
|
||||
enum StringValidationSettings {
|
||||
|
Reference in New Issue
Block a user