Chromium Code Reviews| 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(); |