jmespath.cpp
C++ implementation of JMESPath, a query language for JSON http://jmespath.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Public Types | Public Member Functions | List of all members
jmespath::parser::AppendEscapeSequenceAction Class Reference

The AppendEscapeSequenceAction class is a functor for appending UTF-32 an escape sequence, consisting from a pair of UTF-32 characters, to a UTF-8 encoded strings. More...

#include <appendescapesequenceaction.h>

Public Types

using result_type = void
 The action's result type. More...
 
using escape_type = std::pair< UnicodeChar, UnicodeChar >
 The type of the escape sequence. More...
 

Public Member Functions

result_type operator() (String &utf8String, escape_type escapeSequence) const
 Append the characters of the escapeSequence to the utf8String encoded in UTF-8. More...
 

Detailed Description

The AppendEscapeSequenceAction class is a functor for appending UTF-32 an escape sequence, consisting from a pair of UTF-32 characters, to a UTF-8 encoded strings.

Member Typedef Documentation

The type of the escape sequence.

The action's result type.

Member Function Documentation

result_type jmespath::parser::AppendEscapeSequenceAction::operator() ( String utf8String,
escape_type  escapeSequence 
) const
inline

Append the characters of the escapeSequence to the utf8String encoded in UTF-8.

Treat everything as regular characters if the escaped character is not a single quote.

Parameters
[out]utf8StringThe string where the encoded value of the utf32Char will be appended.
[in]escapeSequenceThe character of the escape sequence encoded in UTF-32

The documentation for this class was generated from the following file: