@@ -24,10 +24,14 @@ * @class OFCharacterSet OFCharacterSet.h ObjFW/OFCharacterSet.h * * @brief A class cluster representing a character set. */ @interface OFCharacterSet: OFObject +#ifdef OF_HAVE_CLASS_PROPERTIES +@property (class, readonly, nonatomic) OFCharacterSet *whitespaceCharacterSet; +#endif + /*! * @brief The inverted set, containing only the characters that do not exist in * the receiver. */ @property (readonly, nonatomic) OFCharacterSet *invertedSet; @@ -48,10 +52,16 @@ * @param range The range of characters for the character set * @return A new OFCharacterSet */ + (instancetype)characterSetWithRange: (of_range_t)range; +/*! + * @brief A character set containing all Unicode characters in the category + * `Zs` plus CHARACTER TABULATION (U+0009). + */ ++ (OFCharacterSet *)whitespaceCharacterSet; + /*! * @brief Initializes an already allocated character set with the characters of * the specified string. * * @param characters The characters for the character set