Class Str
Provides globally reusable string constants for common characters, formatting patterns, and escape sequences used throughout the Scylla framework. Using these constants avoids repeated string allocations and ensures consistency across the codebase.
Inherited Members
Namespace: Scylla.Core
Assembly: ScyllaCore.dll
Syntax
public static class Str
Remarks
Prefer these constants over inline string literals wherever applicable. For the single-character equivalents, see Char.
The escape sequence constants (prefixed with ESCAPE_) represent JSON/C-style
backslash-escaped forms and are primarily used by the serialization system.
Fields
BACKSLASH
A single backslash character (</code>) as a string.
Declaration
public const string BACKSLASH = "\\"
Field Value
| Type | Description |
|---|---|
| string |
BRACKET_CLOSE
A closing square bracket (]).
Declaration
public const string BRACKET_CLOSE = "]"
Field Value
| Type | Description |
|---|---|
| string |
BRACKET_OPEN
An opening square bracket ([).
Declaration
public const string BRACKET_OPEN = "["
Field Value
| Type | Description |
|---|---|
| string |
COMMA
A comma character (,).
Declaration
public const string COMMA = ","
Field Value
| Type | Description |
|---|---|
| string |
ELLIPSIS
A three-dot ellipsis (...), commonly used to indicate truncated text.
Declaration
public const string ELLIPSIS = "..."
Field Value
| Type | Description |
|---|---|
| string |
ELLIPSIS_SHORT
A two-dot short ellipsis (..), used as a compact truncation indicator.
Declaration
public const string ELLIPSIS_SHORT = ".."
Field Value
| Type | Description |
|---|---|
| string |
EMPTY
An empty string (""). Equivalent to Empty but usable as a
default parameter value in method signatures, where Empty is not
permitted because it is not a compile-time constant.
Declaration
public const string EMPTY = ""
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_BACKSLASH
A backslash-escaped backslash sequence (\) for JSON and C-style string escaping.
Declaration
public const string ESCAPE_BACKSLASH = "\\\\"
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_BACKSPACE
A backslash-escaped backspace sequence (\b) for JSON and C-style string escaping.
Declaration
public const string ESCAPE_BACKSPACE = "\\b"
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_CARRIAGE
A backslash-escaped carriage-return sequence (\r) for JSON and C-style string escaping.
Declaration
public const string ESCAPE_CARRIAGE = "\\r"
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_FORMFEED
A backslash-escaped form-feed sequence (\f) for JSON and C-style string escaping.
Declaration
public const string ESCAPE_FORMFEED = "\\f"
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_NEWLINE
A backslash-escaped newline sequence (\n) for JSON and C-style string escaping.
Declaration
public const string ESCAPE_NEWLINE = "\\n"
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_QUOTE
A backslash-escaped double-quote sequence (") for JSON and C-style string escaping.
Declaration
public const string ESCAPE_QUOTE = "\\\""
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_TAB
A backslash-escaped tab sequence (\t) for JSON and C-style string escaping.
Declaration
public const string ESCAPE_TAB = "\\t"
Field Value
| Type | Description |
|---|---|
| string |
ESCAPE_UNICODE
A backslash-escaped Unicode prefix (\u) for JSON Unicode escape sequences
(e.g., \u0041 for the character A).
Declaration
public const string ESCAPE_UNICODE = "\\u"
Field Value
| Type | Description |
|---|---|
| string |
LF
A line-feed character (\n), representing a single newline.
Declaration
public const string LF = "\n"
Field Value
| Type | Description |
|---|---|
| string |
LF2
Two consecutive line-feed characters (\n\n), representing a double newline
commonly used to separate paragraphs or sections.
Declaration
public const string LF2 = "\n\n"
Field Value
| Type | Description |
|---|---|
| string |
MINUS
A minus / hyphen character (-).
Declaration
public const string MINUS = "-"
Field Value
| Type | Description |
|---|---|
| string |
NULL
The string "Null", used as a human-readable placeholder for null values
in log output and debug displays.
Declaration
public const string NULL = "Null"
Field Value
| Type | Description |
|---|---|
| string |
NUM_FORMAT_0
Numeric format string "0" for formatting numbers with no decimal places.
Declaration
public const string NUM_FORMAT_0 = "0"
Field Value
| Type | Description |
|---|---|
| string |
NUM_FORMAT_0_0
Numeric format string "0.0" for formatting numbers with one decimal place.
Declaration
public const string NUM_FORMAT_0_0 = "0.0"
Field Value
| Type | Description |
|---|---|
| string |
NUM_FORMAT_0_00
Numeric format string "0.00" for formatting numbers with two decimal places.
Declaration
public const string NUM_FORMAT_0_00 = "0.00"
Field Value
| Type | Description |
|---|---|
| string |
NUM_FORMAT_0_000
Numeric format string "0.000" for formatting numbers with three decimal places.
Declaration
public const string NUM_FORMAT_0_000 = "0.000"
Field Value
| Type | Description |
|---|---|
| string |
PERIOD
A period / full stop character (.).
Declaration
public const string PERIOD = "."
Field Value
| Type | Description |
|---|---|
| string |
PLUS
A plus sign character (+).
Declaration
public const string PLUS = "+"
Field Value
| Type | Description |
|---|---|
| string |
QUOTATION_MARK
A double-quotation mark character (").
Declaration
public const string QUOTATION_MARK = "\""
Field Value
| Type | Description |
|---|---|
| string |
SLASH
A forward slash character (/), commonly used as a path separator.
Declaration
public const string SLASH = "/"
Field Value
| Type | Description |
|---|---|
| string |
SPACE
A single space character ( ).
Declaration
public const string SPACE = " "
Field Value
| Type | Description |
|---|---|
| string |
TAB
A horizontal tab character (\t).
Declaration
public const string TAB = "\t"
Field Value
| Type | Description |
|---|---|
| string |
UNDERBAR
An underscore / underbar character (_).
Declaration
public const string UNDERBAR = "_"
Field Value
| Type | Description |
|---|---|
| string |