Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0263caacc7951bc72672eceedc97476798d5cc24
      
https://github.com/WebKit/WebKit/commit/0263caacc7951bc72672eceedc97476798d5cc24
  Author: Cole Carley <[email protected]>
  Date:   2025-08-15 (Fri, 15 Aug 2025)

  Changed paths:
    M Source/WTF/wtf/ASCIICType.h

  Log Message:
  -----------
  Add character concept to ASCIICType functions
https://bugs.webkit.org/show_bug.cgi?id=297085
rdar://157789937

Reviewed by Ryan Reno.

This patch adds the concept of a character to ASCIICType.h. This will create 
better error messages for the developer when passing the wrong type. The 
functions will now accept only types that are convertible to a character.

* Source/WTF/wtf/ASCIICType.h:
(WTF::isASCII):
(WTF::isASCIILower):
(WTF::toASCIILowerUnchecked):
(WTF::isASCIIAlpha):
(WTF::isASCIIDigit):
(WTF::isASCIIAlphanumeric):
(WTF::isASCIIHexDigit):
(WTF::isASCIIBinaryDigit):
(WTF::isASCIIOctalDigit):
(WTF::isASCIIPrintable):
(WTF::isASCIIGraphic):
(WTF::isTabOrSpace):
(WTF::isASCIIWhitespace):
(WTF::isASCIIWhitespaceWithoutFF):
(WTF::isUnicodeCompatibleASCIIWhitespace):
(WTF::isASCIIUpper):
(WTF::isNotASCIIWhitespace):
(WTF::toASCIILower):
(WTF::toASCIIUpper):
(WTF::toASCIIHexValue):
(WTF::isASCIIAlphaCaselessEqual):
(WTF::isASCIIDigitOrPunctuation):

Canonical link: https://commits.webkit.org/298753@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to