Definition at line 3432 of file Number.cs.
3433 {
3434 if (section == 0)
3435 {
3436 return 0;
3437 }
3439 {
3440 int num = 0;
3441 while (true)
3442 {
3443 if (num >=
format.Length)
3444 {
3445 return 0;
3446 }
3447 char c;
3448 char c2 = (c = ptr[num++]);
3449 if ((uint)c2 <= 34u)
3450 {
3451 if (c2 == '\0')
3452 {
3453 break;
3454 }
3455 if (c2 != '"')
3456 {
3457 continue;
3458 }
3459 }
3460 else if (c2 != '\'')
3461 {
3462 switch (c2)
3463 {
3464 default:
3465 continue;
3466 case '\\':
3467 if (num <
format.Length && ptr[num] != 0)
3468 {
3469 num++;
3470 }
3471 continue;
3472 case ';':
3473 break;
3474 }
3475 if (--section == 0)
3476 {
3477 if (num >=
format.Length || ptr[num] ==
'\0' || ptr[num] ==
';')
3478 {
3479 break;
3480 }
3481 return num;
3482 }
3483 continue;
3484 }
3485 while (num <
format.Length && ptr[num] != 0 && ptr[num++] != c)
3486 {
3487 }
3488 }
3489 return 0;
3490 }
3491 }
References System.format.
Referenced by System.Number.NumberToStringFormat().