10 references to ToUShort
System.Private.Uri (10)
src\libraries\Common\src\System\Net\IPv4AddressHelper.Common.cs (6)
46
for (; (start < end) && (ch =
ToUShort
(str[start])) != '.' && ch != ':'; ++start)
140
int ch =
ToUShort
(name[start]);
164
(uint)(start + 1) < (uint)name.Length && char.IsAsciiDigit((char)
ToUShort
(name[start + 1])))
223
ch =
ToUShort
(name[current]);
237
ch =
ToUShort
(name[current]);
256
ch =
ToUShort
(name[current]);
src\libraries\Common\src\System\Net\IPv6AddressHelper.Common.cs (4)
139
int currentCh = IPv4AddressHelper.
ToUShort
(name[i]);
200
int ch = IPv4AddressHelper.
ToUShort
(name[i]);
213
if (!char.IsAsciiDigit((char)IPv4AddressHelper.
ToUShort
(name[i])))
329
currentCh = IPv4AddressHelper.
ToUShort
(address[i]);