Changeset 256030 in webkit
- Timestamp:
- Feb 7, 2020 10:10:04 AM (4 years ago)
- Location:
- trunk/Source/WTF
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WTF/ChangeLog
r256016 r256030 1 2020-02-07 youenn fablet <youenn@apple.com> 2 3 Mandate UUID version 4 for mDNS ICE candidates 4 https://bugs.webkit.org/show_bug.cgi?id=207329 5 <rdar://problem/59221606> 6 7 Address post-commit comments from Darin by using isASCIIHexDigit. 8 9 Unreviewed. 10 11 * wtf/UUID.cpp: 12 (WTF::isVersion4UUID): 13 (WTF::isHexadecimalCharacter): Deleted. 14 1 15 2020-02-07 youenn fablet <youenn@apple.com> 2 16 -
trunk/Source/WTF/wtf/UUID.cpp
r256016 r256030 33 33 34 34 #include <mutex> 35 #include <wtf/ASCIICType.h> 35 36 #include <wtf/CryptographicallyRandomNumber.h> 36 37 #include <wtf/HexNumber.h> … … 82 83 } 83 84 84 static inline bool isHexadecimalCharacter(UChar character)85 {86 return (character >= '0' && character <= '9')87 || (character >= 'a' && character <= 'f')88 || (character >= 'A' && character <= 'F');89 }90 91 85 bool isVersion4UUID(StringView value) 92 86 { … … 112 106 continue; 113 107 } 114 if (!is HexadecimalCharacter(value[cptr]))108 if (!isASCIIHexDigit(value[cptr])) 115 109 return false; 116 110 }
Note: See TracChangeset
for help on using the changeset viewer.