29 references to BackSlash
System.Text.Json (29)
System\Text\Json\Document\JsonDocument.cs (2)
365
int idx = segment.IndexOf(JsonConstants.
BackSlash
);
412
Debug.Assert(segment.IndexOf(JsonConstants.
BackSlash
) == -1);
System\Text\Json\Document\JsonDocument.TryGetProperty.cs (1)
174
int idx = currentPropertyName.IndexOf(JsonConstants.
BackSlash
);
System\Text\Json\Reader\JsonReaderHelper.cs (3)
96
Debug.Assert(segment.IndexOf(JsonConstants.
BackSlash
) == -1);
144
Debug.Assert(segment.IndexOf(JsonConstants.
BackSlash
) == -1);
192
Debug.Assert(segment.IndexOf(JsonConstants.
BackSlash
) == -1);
System\Text\Json\Reader\JsonReaderHelper.Unescaping.cs (12)
164
int index1 = utf8Source1.IndexOf(JsonConstants.
BackSlash
);
165
int index2 = utf8Source2.IndexOf(JsonConstants.
BackSlash
);
445
int idx = source.IndexOf(JsonConstants.
BackSlash
);
455
Debug.Assert(source[idx] == JsonConstants.
BackSlash
);
467
int idx = source.IndexOf(JsonConstants.
BackSlash
);
479
Debug.Assert(source[idx] == JsonConstants.
BackSlash
);
491
Debug.Assert(source[idx] == JsonConstants.
BackSlash
);
509
case JsonConstants.
BackSlash
:
510
destination[written++] = JsonConstants.
BackSlash
;
589
if (source[idx] != JsonConstants.
BackSlash
)
592
int nextUnescapedSegmentLength = remaining.IndexOf(JsonConstants.
BackSlash
);
625
Debug.Assert(idx == source.Length || source[idx] == JsonConstants.
BackSlash
);
System\Text\Json\Reader\Utf8JsonReader.cs (4)
620
int idx = localSpan.IndexOf(JsonConstants.
BackSlash
);
654
int idx = span.IndexOf(JsonConstants.
BackSlash
);
1328
Debug.Assert(data[idx] == JsonConstants.
BackSlash
|| data[idx] < JsonConstants.Space);
1347
else if (currentByte == JsonConstants.
BackSlash
)
System\Text\Json\Reader\Utf8JsonReader.MultiSegment.cs (3)
852
else if (currentByte == JsonConstants.
BackSlash
)
964
Debug.Assert(data[idx] == JsonConstants.
BackSlash
|| data[idx] < JsonConstants.Space);
989
else if (currentByte == JsonConstants.
BackSlash
)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (2)
46
Debug.Assert(span.IndexOf(JsonConstants.
BackSlash
) == -1);
841
Debug.Assert(span.IndexOf(JsonConstants.
BackSlash
) == -1);
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (2)
181
case JsonConstants.
BackSlash
:
301
case JsonConstants.
BackSlash
: