~ubuntu-branches/ubuntu/dapper/poppler/dapper-security

« back to all changes in this revision

Viewing changes to poppler/UGooString.h

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2006-03-06 18:42:44 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20060306184244-oomqyiqr7cgncp2c
Tags: 0.5.1-0ubuntu1
* New upstream version:
  - Support for embedded files.
  - Handle 0-width lines correctly.
  - Avoid external file use when opening fonts.
  - Only use vector fonts returned from fontconfig (#5758).
  - Fix scaled 1x1 pixmaps use for drawing lines (#3387).
  - drawSoftMaskedImage support in cairo backend.
  - Misc bug fixes: #5922, #5946, #5749, #5952, #4030, #5420.
* debian/control.in, debian/libpoppler0c2.dirs, 
  debian/libpoppler0c2-glib.dirs, debian/libpoppler0c2-glib.install,
  debian/libpoppler0c2.install, debian/libpoppler0c2-qt.dirs,
  debian/libpoppler0c2-qt.install, debian/rules:
  - updated for the soname change
* debian/patches/000_splash_build_fix.patch:
  - fix build when using splash
* debian/patches/001_fixes_for_fonts_selection.patch:
  - fix with the new version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
 
 
16
class GooString;
 
17
 
 
18
class UGooString
 
19
{
 
20
public:
 
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
 
 
48
private:
 
49
  void initChar(GooString &str);
 
50
 
 
51
  int length;
 
52
  Unicode *s;
 
53
};
 
54
 
 
55
#endif