Changeset 101657 in vbox for trunk/src/VBox/Runtime/common
- Timestamp:
- Oct 30, 2023 1:17:13 PM (15 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/misc/uri.cpp
r98103 r101657 73 73 * delims = '<' , '>' , '#' , '%' , '"' 74 74 * unwise = '{' , '}' , '|' , '\' , '^' , '[' , ']' , '`' 75 * 76 * @note ARM defines char as unsigned by default in the AAPCS(64) so the first check would trigger 77 * a compiler warning/error. Apple decided to ignore that and declares char a signed like on 78 * the other platforms. 75 79 */ 76 #define URI_EXCLUDED(a) \ 80 #if defined(RT_OS_LINUX) \ 81 && (defined(RT_ARCH_ARM64) || defined(RT_ARCH_ARM32)) 82 # define URI_EXCLUDED(a) \ 83 ( ((a) <= 0x20) \ 84 || ((a) >= 0x5B && (a) <= 0x5E) \ 85 || ((a) >= 0x7B && (a) <= 0x7D) \ 86 || (a) == '<' || (a) == '>' || (a) == '#' \ 87 || (a) == '%' || (a) == '"' || (a) == '`' ) 88 #else 89 # define URI_EXCLUDED(a) \ 77 90 ( ((a) >= 0x0 && (a) <= 0x20) \ 78 91 || ((a) >= 0x5B && (a) <= 0x5E) \ … … 80 93 || (a) == '<' || (a) == '>' || (a) == '#' \ 81 94 || (a) == '%' || (a) == '"' || (a) == '`' ) 95 #endif 82 96 83 97 static char *rtUriPercentEncodeN(const char *pszString, size_t cchMax)
Note:
See TracChangeset
for help on using the changeset viewer.