Browse Source

replace fprintf calls with LOG

pull/3787/head
pacbypass 11 months ago
parent
commit
dda2cae8c4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      cpp/src/phonenumbers/utf/unicodetext.cc

+ 2
- 2
cpp/src/phonenumbers/utf/unicodetext.cc View File

@ -371,11 +371,11 @@ void UnicodeText::push_back(char32 c) {
if (UniLib::IsInterchangeValid(buf, len)) {
repr_.append(buf, len);
} else {
fprintf(stderr, "Unicode value 0x%x is not valid for interchange\n", c);
LOG(WARNING) << "Unicode value 0x" << hex << c << " is not valid for interchange";
repr_.append(" ", 1);
}
} else {
fprintf(stderr, "Illegal Unicode value: 0x%x\n", c);
LOG(WARNING) << "Illegal Unicode value: 0x" << hex << c;
repr_.append(" ", 1);
}
}


Loading…
Cancel
Save