Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ IsUrlSafeChar()

static bool System.Web.Util.HttpEncoderUtility.IsUrlSafeChar ( char ch)
inlinestatic

Definition at line 7 of file HttpEncoderUtility.cs.

8 {
9 if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') || (ch >= '0' && ch <= '9'))
10 {
11 return true;
12 }
13 switch (ch)
14 {
15 case '!':
16 case '(':
17 case ')':
18 case '*':
19 case '-':
20 case '.':
21 case '_':
22 return true;
23 default:
24 return false;
25 }
26 }

References System.ch.

Referenced by System.Web.Util.HttpEncoder.UrlEncode(), and System.Web.Util.HttpEncoder.UrlEncodeUnicode().