~ubuntu-branches/ubuntu/precise/gle-graphics/precise

« back to all changes in this revision

Viewing changes to src/gle/gle-datatype.cpp

  • Committer: Bazaar Package Importer
  • Author(s): Christian T. Steigies
  • Date: 2010-02-24 23:21:37 UTC
  • mfrom: (2.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100224232137-f0qfufkxcr2tr1m5
Tags: 4.2.2-2
* upload to unstable
* Updated Standards-Version to 3.8.4 (no changes)

Show diffs side-by-side

added added

removed removed

Lines of Context:
289
289
        }
290
290
}
291
291
 
 
292
string GLEString::toUTF8() const {
 
293
        string out;
 
294
        GLEStringToUTF8 conv(this);
 
295
        while (1) {
 
296
                char ch = conv.get();
 
297
                if (ch == 0) break;
 
298
                out.push_back(ch);
 
299
        }
 
300
        return out;
 
301
}
 
302
 
292
303
void GLEString::toUTF8(char* out) const {
293
304
        int len = 0;
294
305
        GLEStringToUTF8 conv(this);
440
451
        return GLEObjectTypeString;
441
452
}
442
453
 
 
454
GLEString* GLEString::getEmptyString() {
 
455
        static GLERC<GLEString> g_EmptyString = new GLEString();
 
456
        return g_EmptyString.get();
 
457
}
 
458
 
443
459
GLEArray::GLEArray() {
444
460
}
445
461