|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.trolltech.qt.QSignalEmitter
com.trolltech.qt.QtJambiObject
com.trolltech.qt.core.QStringRef
public class QStringRef
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.trolltech.qt.QSignalEmitter |
|---|
QSignalEmitter.Signal0, QSignalEmitter.Signal1<A>, QSignalEmitter.Signal2<A,B>, QSignalEmitter.Signal3<A,B,C>, QSignalEmitter.Signal4<A,B,C,D>, QSignalEmitter.Signal5<A,B,C,D,E>, QSignalEmitter.Signal6<A,B,C,D,E,F>, QSignalEmitter.Signal7<A,B,C,D,E,F,G>, QSignalEmitter.Signal8<A,B,C,D,E,F,G,H>, QSignalEmitter.Signal9<A,B,C,D,E,F,G,H,I> |
| Constructor Summary | |
|---|---|
QStringRef()
Constructs an empty string reference. |
|
QStringRef(QNativePointer string)
Constructs a string reference to the given string. |
|
QStringRef(QNativePointer string,
int position,
int size)
Constructs a string reference to the range of characters in the given string specified by the starting position and length in characters. |
|
QStringRef(QStringRef other)
Constructs a copy of the other string reference. |
|
| Method Summary | |
|---|---|
QStringRef |
appendTo(QNativePointer string)
Appends the string reference to string, and returns a new reference to the combined string data. |
char |
at(int i)
Returns the character at the given index position in the string reference. |
void |
clear()
Clears the contents of the string reference by making it null and empty. |
QNativePointer |
constData()
Same as unicode(). |
int |
count()
Returns the number of characters in this string. |
QNativePointer |
data()
Same as unicode(). |
static QStringRef |
fromNativePointer(QNativePointer nativePointer)
This function returns the QStringRef instance pointed to by nativePointer |
int |
hashCode()
|
boolean |
isEmpty()
Returns true if the string reference has no characters; otherwise returns false. |
boolean |
isNull()
Returns true if string() returns a null pointer or a pointer to a null string; otherwise returns true. |
int |
length()
Returns the number of characters in this substring. |
static QNativePointer |
nativePointerArray(QStringRef[] array)
This function returns a QNativePointer that is pointing to the specified QStringRef array. |
QNativePointer |
operator_assign(QNativePointer string)
Constructs a string reference to the given string and assigns it to this string reference, returning the result. |
QNativePointer |
operator_assign(QStringRef other)
Assigns the other string reference to this string reference, and returns the result. |
int |
position()
Returns the starting position in the referenced string that is referred to by the string reference. |
int |
size()
Returns the number of characters referred to by the string reference. |
QNativePointer |
string()
Returns a pointer to the string referred to by the string reference, or 0 if it does not reference a string. |
java.lang.String |
toString()
Returns a string representation of this QStringRef. |
QNativePointer |
unicode()
Returns a Unicode representation of the string reference. |
| Methods inherited from class com.trolltech.qt.QtJambiObject |
|---|
dispose, disposed, finalize, reassignNativeResources, tr, tr, tr |
| Methods inherited from class com.trolltech.qt.QSignalEmitter |
|---|
blockSignals, disconnect, disconnect, signalsBlocked, signalSender, thread |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.trolltech.qt.QtJambiInterface |
|---|
disableGarbageCollection, nativeId, nativePointer, reenableGarbageCollection, setJavaOwnership |
| Constructor Detail |
|---|
public QStringRef(QNativePointer string)
public QStringRef()
public QStringRef(QStringRef other)
public QStringRef(QNativePointer string,
int position,
int size)
| Method Detail |
|---|
public final QStringRef appendTo(QNativePointer string)
public final char at(int i)
public final void clear()
public final QNativePointer constData()
public final int count()
public final QNativePointer data()
public final boolean isEmpty()
public final boolean isNull()
public final int length()
public final QNativePointer operator_assign(QStringRef other)
public final QNativePointer operator_assign(QNativePointer string)
public final int position()
public final int size()
public final QNativePointer string()
public final java.lang.String toString()
toString in class java.lang.Objectpublic final QNativePointer unicode()
public static QStringRef fromNativePointer(QNativePointer nativePointer)
nativePointer - the QNativePointer of which object should be returned.public static QNativePointer nativePointerArray(QStringRef[] array)
array - the array that the returned pointer will point to.
public int hashCode()
hashCode in class java.lang.Object
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||