![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/share/doc/gnustep-base-doc/Base/Reference/ |
Upload File : |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>NSCharacterSet class reference</title> </head> <body> <font face="serif"> <a href="Base.html">Up</a> <br /> <h1><a name="title$NSCharacterSet">NSCharacterSet class reference</a></h1> <h3>Authors</h3> <dl> <dt>Adam Fedor (<a href="mailto:fedor@boulder.colorado.edu"><code>fedor@boulder.colorado.edu</code></a>)</dt> <dd> </dd> <dt>Richard Frith-Macdonald (<a href="mailto:rfm@gnu.org"><code>rfm@gnu.org</code></a>)</dt> <dd> </dd> </dl> <p><b>Copyright:</b> (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. </p> <div> <hr width="50%" align="left" /> <h3>Contents -</h3> <ol> <li> <a href="#001000000000">Software documentation for the NSCharacterSet class</a> </li> <li> <a href="#002000000000">Software documentation for the NSMutableCharacterSet class</a> </li> </ol> <hr width="50%" align="left" /> </div> <h1><a name="001000000000"> Software documentation for the NSCharacterSet class </a></h1> <h2><a name="class$NSCharacterSet">NSCharacterSet</a> : <a rel="gsdoc" href="NSObject.html#class$NSObject">NSObject</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSCharacterSet.h</dd> </dl> </blockquote> <blockquote> <dl> <dt><b>Conforms to:</b></dt> <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCoding)">NSCoding</a></dd> <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSCopying)">NSCopying</a></dd> <dd><a rel="gsdoc" href="NSObject.html#protocol$(NSMutableCopying)">NSMutableCopying</a></dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Represents a set of unicode characters. Used by <a rel="gsdoc" href="NSScanner.html#class$NSScanner">NSScanner</a> and <a rel="gsdoc" href="NSString.html#class$NSString">NSString</a> for parsing-related methods. </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+alphanumericCharacterSet">+alphanumericCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+capitalizedLetterCharacterSet">+capitalizedLetterCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+characterSetWithBitmapRepresentation$">+characterSetWithBitmapRepresentation:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+characterSetWithCharactersInString$">+characterSetWithCharactersInString:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+characterSetWithContentsOfFile$">+characterSetWithContentsOfFile:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+characterSetWithRange$">+characterSetWithRange:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+controlCharacterSet">+controlCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+decimalDigitCharacterSet">+decimalDigitCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+decomposableCharacterSet">+decomposableCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+illegalCharacterSet">+illegalCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+letterCharacterSet">+letterCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+lowercaseLetterCharacterSet">+lowercaseLetterCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+newlineCharacterSet">+newlineCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+nonBaseCharacterSet">+nonBaseCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+punctuationCharacterSet">+punctuationCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+symbolCharacterSet">+symbolCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+uppercaseLetterCharacterSet">+uppercaseLetterCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+whitespaceAndNewlineCharacterSet">+whitespaceAndNewlineCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet+whitespaceCharacterSet">+whitespaceCharacterSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet-bitmapRepresentation">-bitmapRepresentation</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet-characterIsMember$">-characterIsMember:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet-hasMemberInPlane$">-hasMemberInPlane:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet-invertedSet">-invertedSet</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet-isSupersetOfSet$">-isSupersetOfSet:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSCharacterSet-longCharacterIsMember$">-longCharacterIsMember:</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSCharacterSet+alphanumericCharacterSet">alphanumericCharacterSet </a></h3> + (id) <b>alphanumericCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing letters, numbers, and diacritical marks. Note that "letters" includes all alphabetic as well as Chinese characters, etc.. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+capitalizedLetterCharacterSet">capitalizedLetterCharacterSet </a></h3> + (id) <b>capitalizedLetterCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> Returns a character set containing letters in the unicode Titlecase category. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+characterSetWithBitmapRepresentation$">characterSetWithBitmapRepresentation: </a></h3> + (id) <b>characterSetWithBitmapRepresentation:</b> (<a rel="gsdoc" href="NSData.html#class$NSData">NSData</a>*)data;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing characters as encoded in the <var>data</var> object (8192 bytes) </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+characterSetWithCharactersInString$">characterSetWithCharactersInString: </a></h3> + (id) <b>characterSetWithCharactersInString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)aString;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns set with characters in <var>aString</var>, or empty set for empty string. Raises an exception if given a <code>nil</code> string. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+characterSetWithContentsOfFile$">characterSetWithContentsOfFile: </a></h3> + (id) <b>characterSetWithContentsOfFile:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)aFile;<br /> <div class="availability"> <b>Availability:</b> OPENSTEP 4.0.0 removed at MacOS-X 10.0.0</div> <br /> <div class="desc"> Initializes from a bitmap (8192 bytes representing 65536 values). <br /> Each bit set in the bitmap represents the fact that a character at that position in the unicode base plane exists in the characterset. <br /> File must have extension " <code>.bitmap</code> ". To get around this load the file into data yourself and use [NSCharacterSet -characterSetWithBitmapRepresentation]. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+characterSetWithRange$">characterSetWithRange: </a></h3> + (id) <b>characterSetWithRange:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSRange">NSRange</a>)aRange;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns set containing unicode index range given by <var>aRange</var>. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+controlCharacterSet">controlCharacterSet </a></h3> + (id) <b>controlCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing control and format characters. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+decimalDigitCharacterSet">decimalDigitCharacterSet </a></h3> + (id) <b>decimalDigitCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing characters that represent the decimal digits 0 through 9. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+decomposableCharacterSet">decomposableCharacterSet </a></h3> + (id) <b>decomposableCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing individual characters that can be represented also by a composed character sequence. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+illegalCharacterSet">illegalCharacterSet </a></h3> + (id) <b>illegalCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing unassigned and explicitly illegal character values. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+letterCharacterSet">letterCharacterSet </a></h3> + (id) <b>letterCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing letters, including all alphabetic as well as Chinese characters, etc.. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+lowercaseLetterCharacterSet">lowercaseLetterCharacterSet </a></h3> + (id) <b>lowercaseLetterCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set that contains the lowercase characters. This set does not include caseless characters, only those that have corresponding characters in uppercase and/or titlecase. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+newlineCharacterSet">newlineCharacterSet </a></h3> + (id) <b>newlineCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> Returns a character set containing the newline characters, values 0x000A and 0x000D and nextline 0x0085 character. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+nonBaseCharacterSet">nonBaseCharacterSet </a></h3> + (id) <b>nonBaseCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing characters for diacritical marks, which are usually only rendered in conjunction with another character. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+punctuationCharacterSet">punctuationCharacterSet </a></h3> + (id) <b>punctuationCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing punctuation marks. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+symbolCharacterSet">symbolCharacterSet </a></h3> + (id) <b>symbolCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> Returns a character set containing mathematical symbols, etc.. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+uppercaseLetterCharacterSet">uppercaseLetterCharacterSet </a></h3> + (id) <b>uppercaseLetterCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set that contains the uppercase characters. This set does not include caseless characters, only those that have corresponding characters in lowercase and/or titlecase. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+whitespaceAndNewlineCharacterSet">whitespaceAndNewlineCharacterSet </a></h3> + (id) <b>whitespaceAndNewlineCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set that contains the whitespace characters, plus the newline characters, values 0x000A and 0x000D and nextline 0x0085 character. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet+whitespaceCharacterSet">whitespaceCharacterSet </a></h3> + (id) <b>whitespaceCharacterSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set that contains the whitespace characters. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet-bitmapRepresentation">bitmapRepresentation </a></h3> - (<a rel="gsdoc" href="NSData.html#class$NSData">NSData</a>*) <b>bitmapRepresentation</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a bitmap representation of the receiver's character set (suitable for archiving or writing to a file), in an NSData object. <br /> </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet-characterIsMember$">characterIsMember: </a></h3> - (BOOL) <b>characterIsMember:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$unichar">unichar</a>)aCharacter;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns <code>YES</code> if the receiver contains <em><var>aCharacter</var></em>, <code>NO</code> if it does not. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet-hasMemberInPlane$">hasMemberInPlane: </a></h3> - (BOOL) <b>hasMemberInPlane:</b> (uint8_t)aPlane;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> Returns <code>YES</code> if the receiver contains at least one character in the specified unicode plane. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet-invertedSet">invertedSet </a></h3> - (<a rel="gsdoc" href="#class$NSCharacterSet">NSCharacterSet</a>*) <b>invertedSet</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Returns a character set containing only characters that the receiver does not contain. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet-isSupersetOfSet$">isSupersetOfSet: </a></h3> - (BOOL) <b>isSupersetOfSet:</b> (<a rel="gsdoc" href="#class$NSCharacterSet">NSCharacterSet</a>*)aSet;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> Returns <code>YES</code> is all the characters in <var>aSet</var> are present in the receiver. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSCharacterSet-longCharacterIsMember$">longCharacterIsMember: </a></h3> - (BOOL) <b>longCharacterIsMember:</b> (UTF32Char)aCharacter;<br /> <div class="availability"> <b>Availability:</b> MacOS-X 10.0.0</div> <br /> <div class="desc"> Returns <code>YES</code> is the specified 32-bit character is present in the receiver. </div> <hr width="25%" align="left" /> </div> <h1><a name="002000000000"> Software documentation for the NSMutableCharacterSet class </a></h1> <h2><a name="class$NSMutableCharacterSet">NSMutableCharacterSet</a> : <a rel="gsdoc" href="#class$NSCharacterSet">NSCharacterSet</a></h2> <blockquote class="declared"> <dl> <dt><b>Declared in:</b></dt> <dd>Foundation/NSCharacterSet.h</dd> </dl> </blockquote> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> An <a rel="gsdoc" href="#class$NSCharacterSet">NSCharacterSet</a> that can be modified. </div> <b>Method summary</b> <ul> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSMutableCharacterSet-addCharactersInRange$">-addCharactersInRange:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSMutableCharacterSet-addCharactersInString$">-addCharactersInString:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSMutableCharacterSet-formIntersectionWithCharacterSet$">-formIntersectionWithCharacterSet:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSMutableCharacterSet-formUnionWithCharacterSet$">-formUnionWithCharacterSet:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSMutableCharacterSet-invert">-invert</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSMutableCharacterSet-removeCharactersInRange$">-removeCharactersInRange:</a></li> <li><a rel="gsdoc" href="NSCharacterSet.html#method$NSMutableCharacterSet-removeCharactersInString$">-removeCharactersInString:</a></li> </ul> <hr width="50%" align="left" /> <div class="method"> <h3><a name="method$NSMutableCharacterSet-addCharactersInRange$">addCharactersInRange: </a></h3> - (void) <b>addCharactersInRange:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSRange">NSRange</a>)aRange;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Adds characters specified by unicode indices in <var>aRange</var> to set. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMutableCharacterSet-addCharactersInString$">addCharactersInString: </a></h3> - (void) <b>addCharactersInString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)aString;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Adds characters in <var>aString</var> to set. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMutableCharacterSet-formIntersectionWithCharacterSet$">formIntersectionWithCharacterSet: </a></h3> - (void) <b>formIntersectionWithCharacterSet:</b> (<a rel="gsdoc" href="#class$NSCharacterSet">NSCharacterSet</a>*)otherSet;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Set intersection of character sets. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMutableCharacterSet-formUnionWithCharacterSet$">formUnionWithCharacterSet: </a></h3> - (void) <b>formUnionWithCharacterSet:</b> (<a rel="gsdoc" href="#class$NSCharacterSet">NSCharacterSet</a>*)otherSet;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Set union of character sets. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMutableCharacterSet-invert">invert </a></h3> - (void) <b>invert</b>;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Remove all characters currently in set and add all other characters. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMutableCharacterSet-removeCharactersInRange$">removeCharactersInRange: </a></h3> - (void) <b>removeCharactersInRange:</b> (<a rel="gsdoc" href="TypesAndConstants.html#type$NSRange">NSRange</a>)aRange;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Drop given range of characters. No error for characters not currently in set. </div> <hr width="25%" align="left" /> </div> <div class="method"> <h3><a name="method$NSMutableCharacterSet-removeCharactersInString$">removeCharactersInString: </a></h3> - (void) <b>removeCharactersInString:</b> (<a rel="gsdoc" href="NSString.html#class$NSString">NSString</a>*)aString;<br /> <div class="availability"> <b>Availability:</b> OpenStep</div> <br /> <div class="desc"> Drop characters in <var>aString</var>. No error for characters not currently in set. </div> <hr width="25%" align="left" /> </div> <br /> <a href="Base.html">Up</a> </font> </body> </html>