public class CString extends UnsupportedC implements __ptr__
CPT
Constructor and Description |
---|
CString(int size) |
CString(java.lang.String string) |
Modifier and Type | Method and Description |
---|---|
char |
charAt(int i) |
int |
comparePointer(__ptr__ other) |
void |
copyFrom(CString source,
int nb) |
CString |
duplicate() |
java.lang.String |
getContent() |
ST_refstr_t |
getParent() |
__ptr__ |
getTheField(OFFSET bytes) |
int |
getUid() |
static CString |
gmalloc(int nbytes) |
boolean |
isSame(CString other) |
boolean |
isSameThan(CString other) |
int |
length() |
CString |
plus_(int pointerMove) |
char |
setCharAt(int i,
char c) |
void |
setParent(ST_refstr_t struct) |
CString |
strchr(char c) |
int |
strcmp(CString other) |
int |
strcmp(CString other,
int num) |
CString |
strdup() |
java.lang.String |
toString() |
castTo, isSameThan, unsupported
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
castTo, isSameThan, unsupported
public boolean isSameThan(CString other)
public CString duplicate()
public CString strdup()
public static CString gmalloc(int nbytes)
public __ptr__ getTheField(OFFSET bytes)
getTheField
in interface __ptr__
getTheField
in class UnsupportedC
public ST_refstr_t getParent()
public void setParent(ST_refstr_t struct)
public CString plus_(int pointerMove)
public int comparePointer(__ptr__ other)
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getContent()
public char charAt(int i)
public char setCharAt(int i, char c)
public int length()
public int strcmp(CString other)
public int strcmp(CString other, int num)
public void copyFrom(CString source, int nb)
public CString strchr(char c)
public boolean isSame(CString other)
public int getUid()