~ubuntu-branches/ubuntu/vivid/tesseract/vivid

« back to all changes in this revision

Viewing changes to ccutil/strngs.h

  • Committer: Package Import Robot
  • Author(s): Jeff Breidenbach
  • Date: 2014-02-03 11:10:20 UTC
  • mfrom: (1.3.1) (19.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20140203111020-igquodd7pjlp3uri
Tags: 3.03.01-1
* New upstream release, includes critical fix to PDF rendering
* Complete leptonlib transition (see bug #735509)
* Promote from experimental to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
    inT32 length() const;
56
56
    inT32 size() const { return length(); }
57
57
    const char *string() const;
 
58
    const char *c_str() const;
58
59
 
59
60
    inline char* strdup() const {
60
61
     inT32 len = length() + 1;
94
95
    // be ambiguous, and ints usually need a string before or between them
95
96
    // anyway.
96
97
    void add_str_int(const char* str, int number);
 
98
    // Appends the given string and double (as a %.8g) to this.
 
99
    void add_str_double(const char* str, double number);
97
100
 
98
 
    // ensure capcaity but keep pointer encapsulated
 
101
    // ensure capacity but keep pointer encapsulated
99
102
    inline void ensure(inT32 min_capacity) { ensure_cstr(min_capacity); }
100
103
 
101
104
  private: