Rename PDF_CharType array to kPDFCharTypes.
Fix another spot where we aren't obeying naming conventions.
Change-Id: I358300cd0a40dcab744138ec110e23e6b176ff54
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/109610
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Tom Sepez <tsepez@chromium.org>
diff --git a/core/fpdfapi/parser/fpdf_parser_utility.cpp b/core/fpdfapi/parser/fpdf_parser_utility.cpp
index 3b9f8db..c2f626a 100644
--- a/core/fpdfapi/parser/fpdf_parser_utility.cpp
+++ b/core/fpdfapi/parser/fpdf_parser_utility.cpp
@@ -27,7 +27,7 @@
// 'N' - for numeric: 0123456789+-.
// 'D' - for delimiter: %()/<>[]{}
// 'R' - otherwise.
-const char PDF_CharType[256] = {
+const char kPDFCharTypes[256] = {
// NUL SOH STX ETX EOT ENQ ACK BEL BS HT LF VT FF CR SO
// SI
'W', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'R', 'W', 'W', 'R', 'W', 'W', 'R',
diff --git a/core/fpdfapi/parser/fpdf_parser_utility.h b/core/fpdfapi/parser/fpdf_parser_utility.h
index 259495e..521e20a 100644
--- a/core/fpdfapi/parser/fpdf_parser_utility.h
+++ b/core/fpdfapi/parser/fpdf_parser_utility.h
@@ -19,20 +19,20 @@
class CPDF_Object;
class IFX_SeekableReadStream;
-// Use the accessors below instead of directly accessing PDF_CharType.
-extern const char PDF_CharType[256];
+// Use the accessors below instead of directly accessing kPDFCharTypes.
+extern const char kPDFCharTypes[256];
inline bool PDFCharIsWhitespace(uint8_t c) {
- return PDF_CharType[c] == 'W';
+ return kPDFCharTypes[c] == 'W';
}
inline bool PDFCharIsNumeric(uint8_t c) {
- return PDF_CharType[c] == 'N';
+ return kPDFCharTypes[c] == 'N';
}
inline bool PDFCharIsDelimiter(uint8_t c) {
- return PDF_CharType[c] == 'D';
+ return kPDFCharTypes[c] == 'D';
}
inline bool PDFCharIsOther(uint8_t c) {
- return PDF_CharType[c] == 'R';
+ return kPDFCharTypes[c] == 'R';
}
inline bool PDFCharIsLineEnding(uint8_t c) {