(file) Return to String.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/String.h between version 1.39.2.6 and 1.43

version 1.39.2.6, 2001/08/22 08:11:08 version 1.43, 2002/03/07 14:32:04
Line 22 
Line 22 
 // //
 // Author: Mike Brasher (mbrasher@bmc.com) // Author: Mike Brasher (mbrasher@bmc.com)
 // //
 // Modified By:  // Modified By: Karl Schopmeyer(k.schopmeyer@opengroup.org)
 // //
 //%///////////////////////////////////////////////////////////////////////////// //%/////////////////////////////////////////////////////////////////////////////
  
Line 430 
Line 430 
  
     /** Return true if the str parameter matches the pattern. C-Shell style     /** Return true if the str parameter matches the pattern. C-Shell style
         glob matching is used.         glob matching is used.
           @param str String to be matched against the pattern
           @param pattern Pattern to use in the match
           @return Boolean true if str matches pattern
           The pattern definition is as follows:
           <pre>
           *             Matches any number of any characters
           ?             Match exactly one character
           [chars]       Match any character in chars
           [chara-charb] Match any character in the range between chara and charb
           </pre>
           The literal characters *, ?, [, ] can be included in a string by
           escaping them with backslash "\".  Ranges of characters can be concatenated.
           <pre>
           Boolean result = String::match("This is a test", "*is*");
           Boolean works =  String::match("abcdef123", "*[0-9]");
           </pre>
     */     */
     static Boolean match(const String& str, const String& pattern);     static Boolean match(const String& str, const String& pattern);
  
Line 440 
Line 456 
  
 private: private:
  
     static Uint32 _min(Uint32 x, Uint32 y) { return x < y ? x : y; }      static Uint32 _pegasusMin(Uint32 x, Uint32 y) { return x < y ? x : y; }
  
     Array<Char16> _rep;     Array<Char16> _rep;
 }; };


Legend:
Removed from v.1.39.2.6  
changed lines
  Added in v.1.43

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2