32 references to BackSlash
System.Text.Json (32)
System\Text\Json\Document\JsonDocument.cs (5)
368
int idx = segment.IndexOf(JsonConstants.
BackSlash
);
415
Debug.Assert(segment.IndexOf(JsonConstants.
BackSlash
) == -1);
684
Debug.Assert(segment.IndexOf(JsonConstants.
BackSlash
) == -1);
719
Debug.Assert(segment.IndexOf(JsonConstants.
BackSlash
) == -1);
754
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.Unescaping.cs (12)
164
int index1 = utf8Source1.IndexOf(JsonConstants.
BackSlash
);
165
int index2 = utf8Source2.IndexOf(JsonConstants.
BackSlash
);
448
int idx = source.IndexOf(JsonConstants.
BackSlash
);
458
Debug.Assert(source[idx] == JsonConstants.
BackSlash
);
470
int idx = source.IndexOf(JsonConstants.
BackSlash
);
482
Debug.Assert(source[idx] == JsonConstants.
BackSlash
);
494
Debug.Assert(source[idx] == JsonConstants.
BackSlash
);
512
case JsonConstants.
BackSlash
:
513
destination[written++] = JsonConstants.
BackSlash
;
592
if (source[idx] != JsonConstants.
BackSlash
)
595
int nextUnescapedSegmentLength = remaining.IndexOf(JsonConstants.
BackSlash
);
628
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)
845
else if (currentByte == JsonConstants.
BackSlash
)
957
Debug.Assert(data[idx] == JsonConstants.
BackSlash
|| data[idx] < JsonConstants.Space);
982
else if (currentByte == JsonConstants.
BackSlash
)
System\Text\Json\Reader\Utf8JsonReader.TryGet.cs (5)
46
Debug.Assert(span.IndexOf(JsonConstants.
BackSlash
) == -1);
841
Debug.Assert(span.IndexOf(JsonConstants.
BackSlash
) == -1);
1277
Debug.Assert(span.IndexOf(JsonConstants.
BackSlash
) == -1);
1342
Debug.Assert(span.IndexOf(JsonConstants.
BackSlash
) == -1);
1408
Debug.Assert(span.IndexOf(JsonConstants.
BackSlash
) == -1);
System\Text\Json\Writer\JsonWriterHelper.Escaping.cs (2)
176
case JsonConstants.
BackSlash
:
296
case JsonConstants.
BackSlash
: