From: Christian P. <cp...@us...> - 2005-01-24 01:19:36
|
Update of /cvsroot/pclasses/pclasses2/include/pclasses/Unicode In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7640/Unicode Modified Files: Char.h String.h TextStream.h uctype.h Log Message: Added export-macros. Index: Char.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Unicode/Char.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- Char.h 23 Dec 2004 04:32:17 -0000 1.1 +++ Char.h 24 Jan 2005 01:19:26 -0000 1.2 @@ -21,6 +21,7 @@ #ifndef P_Unicode_Char_h #define P_Unicode_Char_h +#include <pclasses/Export.h> #include <pclasses/BasicTypes.h> #include <cwchar> @@ -29,7 +30,7 @@ namespace Unicode { //! UNICODE 4.0 Compliant character class -class Char { +class PUNICODE_EXPORT Char { public: //! General category enum Category { Index: String.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Unicode/String.h,v retrieving revision 1.2 retrieving revision 1.3 diff -u -d -r1.2 -r1.3 --- String.h 27 Dec 2004 07:00:31 -0000 1.2 +++ String.h 24 Jan 2005 01:19:26 -0000 1.3 @@ -21,6 +21,7 @@ #ifndef P_Unicode_String_h #define P_Unicode_String_h +#include <pclasses/Export.h> #include <pclasses/BasicTypes.h> #include <pclasses/Alloc.h> #include <pclasses/SharedPtr.h> @@ -33,7 +34,7 @@ namespace Unicode { -class String { +class PUNICODE_EXPORT String { public: enum { npos = (size_t)-1 @@ -62,7 +63,7 @@ String left(size_t length) const throw(OutOfMemory, OutOfBounds); String right(size_t length) const throw(OutOfMemory, OutOfBounds); - class Iterator { + class PUNICODE_EXPORT Iterator { public: Iterator(Char* current); Iterator(const Iterator& iter); @@ -85,7 +86,7 @@ Char* _current; }; - class ConstIterator { + class PUNICODE_EXPORT ConstIterator { public: ConstIterator(const Char* current); ConstIterator(const ConstIterator& iter); Index: uctype.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Unicode/uctype.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- uctype.h 14 Jan 2005 14:46:01 -0000 1.1 +++ uctype.h 24 Jan 2005 01:19:26 -0000 1.2 @@ -21,6 +21,7 @@ #ifndef P_Unicode_uctype_h #define P_Unicode_uctype_h +#include <pclasses/Export.h> #include <pclasses/BasicTypes.h> namespace P { @@ -29,21 +30,21 @@ typedef uint32_t uchar_t; -int isualnum(uchar_t c); -int isualpha(uchar_t c); +PUNICODE_EXPORT int isualnum(uchar_t c); +PUNICODE_EXPORT int isualpha(uchar_t c); -int isucntrl(uchar_t c); -int isudigit(uchar_t c); -int isugraph(uchar_t c); -int isulower(uchar_t c); -int isuprint(uchar_t c); -int isupunct(uchar_t c); -int isuspace(uchar_t c); -int isuupper(uchar_t c); +PUNICODE_EXPORT int isucntrl(uchar_t c); +PUNICODE_EXPORT int isudigit(uchar_t c); +PUNICODE_EXPORT int isugraph(uchar_t c); +PUNICODE_EXPORT int isulower(uchar_t c); +PUNICODE_EXPORT int isuprint(uchar_t c); +PUNICODE_EXPORT int isupunct(uchar_t c); +PUNICODE_EXPORT int isuspace(uchar_t c); +PUNICODE_EXPORT int isuupper(uchar_t c); -uchar_t touchar(char c); -uchar_t toulower(uchar_t c); -uchar_t touupper(uchar_t c); +PUNICODE_EXPORT uchar_t touchar(char c); +PUNICODE_EXPORT uchar_t toulower(uchar_t c); +PUNICODE_EXPORT uchar_t touupper(uchar_t c); #define UEOF ((P::Unicode::uchar_t)-1) Index: TextStream.h =================================================================== RCS file: /cvsroot/pclasses/pclasses2/include/pclasses/Unicode/TextStream.h,v retrieving revision 1.1 retrieving revision 1.2 diff -u -d -r1.1 -r1.2 --- TextStream.h 23 Dec 2004 04:32:17 -0000 1.1 +++ TextStream.h 24 Jan 2005 01:19:26 -0000 1.2 @@ -21,6 +21,7 @@ #ifndef P_Unicode_TextStream_h #define P_Unicode_TextStream_h +#include <pclasses/Export.h> #include <pclasses/IntTypes.h> #include <pclasses/CircularQueue.h> #include <pclasses/Unicode/String.h> @@ -29,14 +30,14 @@ namespace Unicode { -class TextStreamBuffer { +class PUNICODE_EXPORT TextStreamBuffer { public: TextStreamBuffer(); ~TextStreamBuffer(); }; -class TextStream { +class PUNICODE_EXPORT TextStream { public: //! Number format @@ -100,10 +101,10 @@ }; -TextStream& endl(TextStream& strm); -TextStream& dec(TextStream& strm); -TextStream& hex(TextStream& strm); -TextStream& oct(TextStream& strm); +PUNICODE_EXPORT TextStream& endl(TextStream& strm); +PUNICODE_EXPORT TextStream& dec(TextStream& strm); +PUNICODE_EXPORT TextStream& hex(TextStream& strm); +PUNICODE_EXPORT TextStream& oct(TextStream& strm); } // !namespace Unicode |