source: trunk/poppler/mypoppler/poppler/UGooString.h @ 2

Last change on this file since 2 was 2, checked in by Eugene Romanenko, 15 years ago

First import

File size: 1010 bytes
Line 
1//========================================================================
2//
3// UGooString.h
4//
5// Unicode string
6//
7// Copyright 2005 Albert Astals Cid <aacid@kde.org>
8//
9//========================================================================
10
11#ifndef UGooString_H
12#define UGooString_H
13
14#include "CharTypes.h"
15
16class GooString;
17
18class UGooString
19{
20public:
21  // Create an unicode string
22  UGooString(Unicode *u, int l);
23
24  // Create a unicode string from <str>.
25  UGooString(GooString &str);
26
27  // Copy the unicode string
28  UGooString(const UGooString &str);
29
30  // Create a unicode string from <str>.
31  UGooString(const char *str);
32
33  // Destructor.
34  ~UGooString();
35
36  // Get length.
37  int getLength() const { return length; }
38
39  // Compare two strings:  -1:<  0:=  +1:>
40  int cmp(UGooString *str) const;
41
42  // get the unicode
43  Unicode *unicode() const { return s; }
44
45  // get the const char*
46  char *getCString() const;
47
48private:
49  void initChar(GooString &str);
50
51  int length;
52  Unicode *s;
53};
54
55#endif
Note: See TracBrowser for help on using the repository browser.