Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(574)

Unified Diff: core/include/fxcrt/fx_basic.h

Issue 1530763005: Correctly extracting email addresses (Closed) Base URL: https://pdfium.googlesource.com/pdfium.git@master
Patch Set: Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: core/include/fxcrt/fx_basic.h
diff --git a/core/include/fxcrt/fx_basic.h b/core/include/fxcrt/fx_basic.h
index 6e7fbb4555d7420904637d4fe8920d39c08c5b1f..e78ea22fb12a6a41f8942286ed8971be1ea73b3f 100644
--- a/core/include/fxcrt/fx_basic.h
+++ b/core/include/fxcrt/fx_basic.h
@@ -27,6 +27,12 @@
template <typename T, size_t N>
char(&ArraySizeHelper(T(&array)[N]))[N];
+// Check whether a wide char is digital 0-9.
+#define FX_ISWDIGIT(x) ((x) >= L'0' && (x) <= L'9')
+// Check whether a wide char is an alphanumeric character A-Z or a-z.
+#define FX_ISWALPHA(x) \
Lei Zhang 2015/12/18 00:20:56 We already have FXSYS_islower() and friends in cor
Wei Li 2015/12/18 01:12:21 Done.
+ (((x) >= L'A' && (x) <= L'Z') || ((x) >= L'a' && (x) <= L'z'))
+
class CFX_BinaryBuf {
public:
CFX_BinaryBuf();

Powered by Google App Engine
This is Rietveld 408576698