Definition at line 441 of file WebUtility.cs.
442 {
443 for (
int i = 0;
i <
input.Length;
i++)
444 {
446 if (c <= '>')
447 {
448 switch (c)
449 {
450 case '<':
452 break;
453 case '>':
455 break;
456 case '"':
458 break;
459 case '\'':
461 break;
462 case '&':
464 break;
465 default:
467 break;
468 }
469 continue;
470 }
471 int num = -1;
472 if (c >= '\u00a0' && c < 'Ā')
473 {
474 num = c;
475 }
476 else if (char.IsSurrogate(c))
477 {
480 {
482 }
483 else
484 {
486 }
487 }
488 if (num >= 0)
489 {
495 }
496 else
497 {
499 }
500 }
501 }
static int GetNextUnicodeScalarValueFromUtf16Surrogate(ReadOnlySpan< char > input, ref int index)
References System.destination, System.Net.WebUtility.GetNextUnicodeScalarValueFromUtf16Surrogate(), and System.input.