14 inline bool IsCharWhitespace(
char ch)
35 inline bool IsCharDelimiter(
char ch)
64 inline bool IsCharTokenDelimiter(
char ch, PdfTokenType& tokenType)
69 tokenType = PdfTokenType::ParenthesisLeft;
72 tokenType = PdfTokenType::ParenthesisRight;
75 tokenType = PdfTokenType::SquareBracketLeft;
78 tokenType = PdfTokenType::SquareBracketRight;
81 tokenType = PdfTokenType::BraceLeft;
84 tokenType = PdfTokenType::BraceRight;
87 tokenType = PdfTokenType::Slash;
90 tokenType = PdfTokenType::Unknown;
99 return !(IsCharWhitespace(
ch) || IsCharDelimiter(
ch));
107 return ch > 32 &&
ch < 127;
SPDX-FileCopyrightText: (C) 2005 Dominik Seichter domseichter@web.de SPDX-FileCopyrightText: (C) 2020...
Convenient type for char array storage and/or buffer with std::string compatibility.
Definition basetypes.h:38
SPDX-FileCopyrightText: (C) 2022 Francesco Pretto ceztko@gmail.com SPDX-License-Identifier: LGPL-2....
Definition basetypes.h:16
bool IsCharASCIIPrintable(char ch)
Check if the character is within the range of non control code ASCII characters.
Definition PdfUtils.h:105
bool IsCharRegular(char ch)
Checks if a character is neither whitespace or delimiter.
Definition PdfUtils.h:97