mirror of
https://gitee.com/openharmony/arkcompiler_ets_runtime
synced 2024-11-27 04:00:37 +00:00
Fix the code format problem
issue:https://gitee.com/openharmony/arkcompiler_ets_runtime/issues/I78RVC Signed-off-by: wangxiaojia1204 <wangxiaojia5@huawei.com>
This commit is contained in:
parent
880953a498
commit
4ce0bb2cbc
@ -178,7 +178,7 @@ public:
|
||||
|
||||
inline static int Canonicalize(int c, bool isUnicode)
|
||||
{
|
||||
if (c < TMP_BUF_SIZE) { // NOLINTNEXTLINE(readability-magic-numbers)
|
||||
if (c < TMP_BUF_SIZE) { // NOLINTNEXTLINE(readability-magic-numbers)
|
||||
if (c >= 'a' && c <= 'z') {
|
||||
c = c - 'a' + 'A';
|
||||
}
|
||||
@ -186,12 +186,12 @@ public:
|
||||
int cur = c;
|
||||
if (isUnicode) {
|
||||
c = u_tolower(static_cast<UChar32>(c));
|
||||
if(c >= 'a' && c <= 'z'){
|
||||
if(c >= 'a' && c <= 'z') {
|
||||
c = cur;
|
||||
}
|
||||
} else {
|
||||
c = u_toupper(static_cast<UChar32>(c));
|
||||
if (c >= 'A' && c <= 'Z'){
|
||||
if (c >= 'A' && c <= 'Z') {
|
||||
c = cur;
|
||||
}
|
||||
}
|
||||
@ -202,9 +202,11 @@ public:
|
||||
{
|
||||
RangeSet cr;
|
||||
RangeSet cr1;
|
||||
uint32_t pt[2];
|
||||
pt[0] = 'a';
|
||||
pt[1] = 'z' + 1;
|
||||
uint32_t pt[2]; // 2: Range values for a and z + 1
|
||||
const uint32_t MINLOWERCHAR = 'a';
|
||||
const uint32_t MAXLOWERCHAR = 'z' + 1;
|
||||
pt[0] = MINLOWERCHAR;
|
||||
pt[1] = MAXLOWERCHAR;
|
||||
cr.Insert(pt[0], pt[1]);
|
||||
result->Inter(cr1, cr);
|
||||
result->Insert(cr1);
|
||||
|
Loading…
Reference in New Issue
Block a user