home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 6 / AACD06.ISO / AACD / Programming / ICU / src / icu / source / common / unistrm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-08-16  |  2.0 KB  |  54 lines

  1. /*
  2. *****************************************************************************************
  3. *                                                                                       *
  4. * COPYRIGHT:                                                                            *
  5. *   (C) Copyright Taligent, Inc.,  1997                                                 *
  6. *   (C) Copyright International Business Machines Corporation,  1996-1999                   *
  7. *   Licensed Material - Program-Property of IBM - All Rights Reserved.                  *
  8. *   US Government Users Restricted Rights - Use, duplication, or disclosure             *
  9. *   restricted by GSA ADP Schedule Contract with IBM Corp.                              *
  10. *                                                                                       *
  11. *****************************************************************************************
  12. *
  13. *  FILE NAME : unistrm.h
  14. *
  15. *   Modification History:
  16. *
  17. *   Date        Name        Description
  18. *   02/05/97    aliu        Added UnicodeString streamIn and streamOut methods.
  19. *   03/26/97    aliu        Added indexOf(UChar,).
  20. *   04/24/97    aliu        Numerous changes per code review.
  21. *   05/06/97    helena      Added isBogus().
  22. *****************************************************************************************
  23. */         
  24. #ifndef UNISTRM_H
  25. #define UNISTRM_H
  26.  
  27. #include <iostream.h>
  28.  
  29.  
  30. #include "filestrm.h"
  31. #include "unistr.h"
  32.  
  33.  
  34. class U_COMMON_API UnicodeStringStreamer
  35. {
  36. public:
  37.     static void streamIn(UnicodeString* string, FileStream* is);
  38.     static void streamOut(const UnicodeString* string, FileStream* os);
  39. };
  40.  
  41. /**
  42.  * Write the contents of a UnicodeString to an ostream. This functions writes
  43.  * the characters in a UnicodeString to an ostream. The UChars in the
  44.  * UnicodeString are truncated to char, leading to undefined results with
  45.  * anything not in the Latin1 character set.
  46.  */
  47. U_COMMON_API ostream& operator<<(ostream&              stream,
  48.                               const UnicodeString&  string);
  49.  
  50. #endif
  51.  
  52.  
  53.  
  54.