enum Noir::TopLevelSplit::Escape

Overview

How a backslash is treated.

InQuotes consumes the backslash AND the following character as part of the quoted run, and RETAINS the backslash in the emitted part — verified against the implementations being replaced (e.g. drogon/httplib/oatpp split_top_level_args, which append the char first and only then decide whether it was an escape). Callers re-parse the literal themselves, so stripping the backslash here would have silently changed every route string that contained an escaped quote.

Defined in:

utils/top_level_split.cr

Enum Members

None = 0
InQuotes = 1
Always = 2

Instance Method Summary

Instance Method Detail

def always? #

Returns true if this enum value equals Always


[View source]
def in_quotes? #

Returns true if this enum value equals InQuotes


[View source]
def none? #

Returns true if this enum value equals None


[View source]