⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ofstring.h

📁 转化为DIB位图再显示出来的dicom文件C++代码
💻 H
📖 第 1 页 / 共 3 页
字号:
     */    size_t find_last_not_of(const OFString& str, size_t pos = OFString_npos) const;    /** scans the current string up to the position pos and     *  determines the highest location, loc, such that the character at loc     *  does not match any character from the set of characters. If such     *  a location is found, it is returned. Otherwise, the function returns     *  string::npos.     *  @param s set of characters to find, pointer to an array of char of length n. Must not be NULL.     *  @param pos position to start searching from     *  @param n number of characters in array     *  @return index of pattern in string     */    size_t find_last_not_of(const char* s, size_t pos, size_t n) const;    /** scans the current string up to the position pos and     *  determines the highest location, loc, such that the character at loc     *  does not match any character from the set of characters. If such     *  a location is found, it is returned. Otherwise, the function returns     *  string::npos.     *  @param s set of characters to find, pointer to a zero-terminated C string. Must not be NULL.     *  @param pos position to start searching from     *  @return index of pattern in string     */    size_t find_last_not_of(const char* s, size_t pos = OFString_npos) const;    /** scans the current string up to the position pos and     *  determines the highest location, loc, such that the character at loc     *  does not match the given character. If such     *  a location is found, it is returned. Otherwise, the function returns     *  string::npos.     *  @param c character to find     *  @param pos position to start searching from     *  @return index of character     */    size_t find_last_not_of(char c, size_t pos = OFString_npos) const;private:    /// the "C" string pointer    char* theCString;    /// the capacity of str    size_t theCapacity;};/** puts the string s on the output stream o. *  @param o output stream *  @param s string to print *  @return reference to stream */ostream& operator<< (ostream& o, const OFString& s);/** reads a string of characters from input stream i into s. Any *  whitespace is treated as a string terminator. *  @param i input stream *  @param s string to print *  @return reference to stream */istream& operator>> (istream& i, OFString& s);/** appends the string rhs to lhs. *  @param lhs left-hand side string *  @param rhs right-hand side string *  @return concatenated string, by value */OFString operator+ (const OFString& lhs, const OFString& rhs);/** appends the string rhs to lhs. *  @param lhs left-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @param rhs right-hand side string *  @return concatenated string, by value */OFString operator+ (const char* lhs, const OFString& rhs);/** appends the string rhs to lhs. *  @param lhs left-hand side string, single character *  @param rhs right-hand side string *  @return concatenated string, by value */OFString operator+ (char lhs, const OFString& rhs);/** appends the string rhs to lhs. *  @param lhs left-hand side string *  @param rhs right-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @return concatenated string, by value */OFString operator+ (const OFString& lhs, const char* rhs);/** appends the string rhs to lhs. *  @param lhs left-hand side string *  @param rhs right-hand side string, single character *  @return concatenated string, by value */OFString operator+ (const OFString& lhs, char rhs);/** returns true if lhs.compare(rhs) is zero, otherwise false. *  @param lhs left-hand side string *  @param rhs right-hand side string *  @return true if strings are equal, false otherwise */OFBool operator== (const OFString& lhs, const OFString& rhs);/** returns true if lhs.compare(rhs) is zero, otherwise false. *  @param lhs left-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @param rhs right-hand side string *  @return true if strings are equal, false otherwise */OFBool operator== (const char* lhs, const OFString& rhs);/** returns true if lhs.compare(rhs) is zero, otherwise false. *  @param lhs left-hand side string, single character *  @param rhs right-hand side string *  @return true if strings are equal, false otherwise */OFBool operator== (char lhs, const OFString& rhs);/** returns true if lhs.compare(rhs) is zero, otherwise false. *  @param lhs left-hand side string *  @param rhs right-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @return true if strings are equal, false otherwise */OFBool operator== (const OFString& lhs, const char* rhs);/** returns true if lhs.compare(rhs) is zero, otherwise false. *  @param lhs left-hand side string *  @param rhs right-hand side string, single character *  @return true if strings are equal, false otherwise */OFBool operator== (const OFString& lhs, char rhs);/** returns true if lhs.compare(rhs) < 0, otherwise false. *  @param lhs left-hand side string *  @param rhs right-hand side string *  @return true if lhs < rhs, false otherwise */OFBool operator< (const OFString& lhs, const OFString& rhs);/** returns true if lhs.compare(rhs) < 0, otherwise false. *  @param lhs left-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @param rhs right-hand side string *  @return true if lhs < rhs, false otherwise */OFBool operator< (const char* lhs, const OFString& rhs);/** returns true if lhs.compare(rhs) < 0, otherwise false. *  @param lhs left-hand side string, single character *  @param rhs right-hand side string *  @return true if lhs < rhs, false otherwise */OFBool operator< (char lhs, const OFString& rhs);/** returns true if lhs.compare(rhs) < 0, otherwise false. *  @param lhs left-hand side string *  @param rhs right-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @return true if lhs < rhs, false otherwise */OFBool operator< (const OFString& lhs, const char* rhs);/** returns true if lhs.compare(rhs) < 0, otherwise false. *  @param lhs left-hand side string *  @param rhs right-hand side string, single character *  @return true if lhs < rhs, false otherwise */OFBool operator< (const OFString& lhs, char rhs);/** returns !(rhs < lhs) *  @param lhs left-hand side string *  @param rhs right-hand side string *  @return true if lhs <= rhs, false otherwise */OFBool operator<= (const OFString& lhs, const OFString& rhs);/** returns !(rhs < lhs) *  @param lhs left-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @param rhs right-hand side string *  @return true if lhs <= rhs, false otherwise */OFBool operator<= (const char* lhs, const OFString& rhs);/** returns !(rhs < lhs) *  @param lhs left-hand side string, single character *  @param rhs right-hand side string *  @return true if lhs <= rhs, false otherwise */OFBool operator<= (char lhs, const OFString& rhs);/** returns !(rhs < lhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @return true if lhs <= rhs, false otherwise */OFBool operator<= (const OFString& lhs, const char* rhs);/** returns !(rhs < lhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, single character *  @return true if lhs <= rhs, false otherwise */OFBool operator<= (const OFString& lhs, char rhs);/** returns !(lhs == rhs) *  @param lhs left-hand side string *  @param rhs right-hand side string *  @return true if lhs != rhs, false otherwise */OFBool operator!= (const OFString& lhs, const OFString& rhs);/** returns !(lhs == rhs) *  @param lhs left-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @param rhs right-hand side string *  @return true if lhs != rhs, false otherwise */OFBool operator!= (const char* lhs, const OFString& rhs);/** returns !(lhs == rhs) *  @param lhs left-hand side string, single character *  @param rhs right-hand side string *  @return true if lhs != rhs, false otherwise */OFBool operator!= (char lhs, const OFString& rhs);/** returns !(lhs == rhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @return true if lhs != rhs, false otherwise */OFBool operator!= (const OFString& lhs, const char* rhs);/** returns !(lhs == rhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, single character *  @return true if lhs != rhs, false otherwise */OFBool operator!= (const OFString& lhs, char rhs);/** returns (rhs < lhs) *  @param lhs left-hand side string *  @param rhs right-hand side string *  @return true if lhs > rhs, false otherwise */OFBool operator> (const OFString& lhs, const OFString& rhs);/** returns (rhs < lhs) *  @param lhs left-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @param rhs right-hand side string *  @return true if lhs > rhs, false otherwise */OFBool operator> (const char* lhs, const OFString& rhs);/** returns (rhs < lhs) *  @param lhs left-hand side string, single character *  @param rhs right-hand side string *  @return true if lhs > rhs, false otherwise */OFBool operator> (char lhs, const OFString& rhs);/** returns (rhs < lhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @return true if lhs > rhs, false otherwise */OFBool operator> (const OFString& lhs, const char* rhs);/** returns (rhs < lhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, single character *  @return true if lhs > rhs, false otherwise */OFBool operator> (const OFString& lhs, char rhs);/** returns !(lhs < rhs) *  @param lhs left-hand side string *  @param rhs right-hand side string *  @return true if lhs >= rhs, false otherwise */OFBool operator>= (const OFString& lhs, const OFString& rhs);/** returns !(lhs < rhs) *  @param lhs left-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @param rhs right-hand side string *  @return true if lhs >= rhs, false otherwise */OFBool operator>= (const char* lhs, const OFString& rhs);/** returns !(lhs < rhs) *  @param lhs left-hand side string, single character *  @param rhs right-hand side string *  @return true if lhs >= rhs, false otherwise */OFBool operator>= (char lhs, const OFString& rhs);/** returns !(lhs < rhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, pointer to a zero-terminated C string. Must not be NULL. *  @return true if lhs >= rhs, false otherwise */OFBool operator>= (const OFString& lhs, const char* rhs);/** returns !(lhs < rhs) *  @param lhs left-hand side string *  @param rhs right-hand side string, single character *  @return true if lhs >= rhs, false otherwise */OFBool operator>= (const OFString& lhs, char rhs);#endif /* HAVE_STD_STRING */#endif /* OFSTRING_H *//*** CVS/RCS Log:** $Log: ofstring.h,v $** Revision 1.20  2005/12/08 16:06:07  meichel** Changed include path schema for all DCMTK header files**** Revision 1.19  2004/08/03 11:45:42  meichel** Headers libc.h and unistd.h are now included via ofstdinc.h**** Revision 1.18  2004/01/16 10:30:12  joergr** Removed acknowledgements with e-mail addresses from CVS log.**** Revision 1.17  2003/08/07 11:44:55  joergr** Slightly modified header comments to conform to doxygen syntax.**** Revision 1.16  2003/07/09 13:57:43  meichel** Adapted type casts to new-style typecast operators defined in ofcast.h**** Revision 1.15  2003/07/04 13:31:51  meichel** Fixed issues with compiling with HAVE_STD_STRING**** Revision 1.14  2003/06/12 13:13:51  joergr** Fixed inconsistent API documentation reported by Doxygen.**** Revision 1.13  2002/11/27 11:23:06  meichel** Adapted module ofstd to use of new header file ofstdinc.h**** Revision 1.12  2002/04/16 13:36:03  joergr** Added configurable support for C++ ANSI standard includes (e.g. streams).**** Revision 1.11  2001/12/04 16:48:16  meichel** Completed doc++ documentation, fixed bug in OFString::copy.**** Revision 1.10  2001/11/02 13:18:53  meichel** Removed character sequences that could be interpreted as ISO C++ trigraphs**** Revision 1.9  2001/06/01 15:51:35  meichel** Updated copyright header**** Revision 1.8  2000/03/08 16:36:02  meichel** Updated copyright header.**** Revision 1.7  2000/02/23 15:13:44  meichel** Corrected macro for Borland C++ Builder 4 workaround.**** Revision 1.6  2000/02/01 10:09:37  meichel** Avoiding to include <stdlib.h> as extern "C" on Borland C++ Builder 4,**   workaround for bug in compiler header files.**** Revision 1.5  1998/11/27 12:42:52  joergr** Added copyright message to source files and changed CVS header.**** Revision 1.4  1997/09/01 10:00:12  hewett** Added absent $ terminator to RCS/CVS Revision keyword in header.**** Revision 1.3  1997/07/14 13:37:31  meichel** Simplified OFString code to allow compilation with Sun CC 2.0.1**** Revision 1.2  1997/07/07 14:05:24  hewett** Renamed the constant OFnpos to OFString_npos to look more like** the real ANSI constant string::npos.**** Revision 1.1  1997/07/07 11:52:18  meichel** Added string class OFString to ofstd library.** This class implements a subset of the ANSI C++ "string" class.*****/

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -