Package smetana.core
Class CString
- java.lang.Object
-
- smetana.core.UnsupportedC
-
- smetana.core.CString
-
- All Implemented Interfaces:
__ptr__
public class CString extends UnsupportedC implements __ptr__
-
-
Field Summary
-
Fields inherited from class smetana.core.UnsupportedC
CPT
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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()
-
Methods inherited from class smetana.core.UnsupportedC
castTo, isSameThan, unsupported
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface smetana.core.__ptr__
castTo, isSameThan, unsupported
-
-
-
-
Method Detail
-
isSameThan
public boolean isSameThan(CString other)
-
duplicate
public CString duplicate()
-
strdup
public CString strdup()
-
gmalloc
public static CString gmalloc(int nbytes)
-
getTheField
public __ptr__ getTheField(OFFSET bytes)
- Specified by:
getTheField
in interface__ptr__
- Overrides:
getTheField
in classUnsupportedC
-
getParent
public ST_refstr_t getParent()
-
setParent
public void setParent(ST_refstr_t struct)
-
plus_
public CString plus_(int pointerMove)
-
comparePointer
public int comparePointer(__ptr__ other)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
getContent
public java.lang.String getContent()
-
charAt
public char charAt(int i)
-
setCharAt
public char setCharAt(int i, char c)
-
length
public int length()
-
strcmp
public int strcmp(CString other)
-
strcmp
public int strcmp(CString other, int num)
-
copyFrom
public void copyFrom(CString source, int nb)
-
strchr
public CString strchr(char c)
-
isSame
public boolean isSame(CString other)
-
getUid
public int getUid()
-
-