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 charcharAt(int i)intcomparePointer(__ptr__ other)voidcopyFrom(CString source, int nb)CStringduplicate()StringgetContent()ST_refstr_tgetParent()__ptr__getTheField(OFFSET bytes)intgetUid()static CStringgmalloc(int nbytes)booleanisSame(CString other)booleanisSameThan(CString other)intlength()CStringplus_(int pointerMove)charsetCharAt(int i, char c)voidsetParent(ST_refstr_t struct)CStringstrchr(char c)intstrcmp(CString other)intstrcmp(CString other, int num)CStringstrdup()StringtoString()-
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
-
-
-
-
Constructor Detail
-
CString
public CString(String string)
-
CString
public CString(int size)
-
-
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:
getTheFieldin interface__ptr__- Overrides:
getTheFieldin 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)
-
getContent
public 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()
-
-