String class reference
[Base module]

Declaration  

#include <QtLua/String>

namespace QtLua {
class String;
};

This class is a member of the QtLua namespace.

This class is declared in QtLua/qtluastring.hh source file, line 47.

Description  

Lua use 8 bits character strings so QString is not suitable for QtLua.

This class is used as string object in the QtLua project. It is based on QByteArray with added conversion functions.

This class is also used as exceptions type for exceptions associated with lua errors.

Members  

Functions  

Members detail  

String()  

This constructor is declared in QtLua/qtluastring.hh source file, line 50.

Create an empty string

String(const char *s)  

This constructor is declared in QtLua/qtluastring.hh source file, line 52.

Create a string from const char *

String(const char *s, int size)  

This constructor is declared in QtLua/qtluastring.hh source file, line 54.

Create a string from const char * with given length

String(const QByteArray &s)  

This constructor is declared in QtLua/qtluastring.hh source file, line 56.

Create a string from QByteArray

String(const QString &s)  

This constructor is declared in QtLua/qtluastring.hh source file, line 58.

Copy constructor

String & arg(const QByteArray &arg)  

This function is declared in QtLua/qtluastring.hh source file, line 60.

Replace next % character in string with given string

String & arg(const QString &arg)  

This function is declared in QtLua/qtluastring.hh source file, line 62.

Replace next % character in string with given string

String & arg(const char *arg)  

This function is declared in QtLua/qtluastring.hh source file, line 64.

Replace next % character in string with given integer

String & arg(int arg)  

This function is declared in QtLua/qtluastring.hh source file, line 66.

Replace next % character in string with given integer

operator const char*() const  

This function is declared in QtLua/qtluastring.hh source file, line 68.

const char * cast operator

QString to_qstring() const  

This function is declared in QtLua/qtluastring.hh source file, line 70.

QString cast operator

Valid XHTML 1.0 StrictGenerated by diaxen on Sat Mar 30 16:23:03 2013 using MkDoc