28 #ifndef APPENDESCAPESEQUENCEACTION_H
29 #define APPENDESCAPESEQUENCEACTION_H
32 namespace jmespath {
namespace parser {
63 auto outIt = std::back_inserter(utf8String);
64 boost::utf8_output_iterator<decltype(outIt)> utf8OutIt(outIt);
67 if (escapeSequence.second != U
'\'')
69 *utf8OutIt++ = escapeSequence.first;
71 *utf8OutIt++ = escapeSequence.second;
75 #endif // APPENDESCAPESEQUENCEACTION_H
void result_type
The action's result type.
Definition: appendescapesequenceaction.h:45
std::basic_string< Char > String
UTF-8 encoded string type.
Definition: types.h:44
std::pair< UnicodeChar, UnicodeChar > escape_type
The type of the escape sequence.
Definition: appendescapesequenceaction.h:49
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.
Definition: appendescapesequenceaction.h:39
result_type operator()(String &utf8String, escape_type escapeSequence) const
Append the characters of the escapeSequence to the utf8String encoded in UTF-8.
Definition: appendescapesequenceaction.h:60