Package smetana.core
Class CString
- java.lang.Object
-
- smetana.core.UnsupportedC
-
- smetana.core.CString
-
- All Implemented Interfaces:
__c__fields
,__ptr__
,Area
public class CString extends UnsupportedC implements __ptr__, Area
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description __ptr__
addVirtualBytes(int bytes)
char
charAt(int i)
int
compareTo(CString other)
int
compareTo(CString other, int num)
void
copyFrom(CString source, int nb)
CString
duplicate()
java.lang.String
getContent()
ST_refstr_t
getParent()
int
getUid()
boolean
isSame(CString other)
boolean
isSameThan(CString other)
int
length()
void
memcopyFrom(Area source)
CString
plus(int pointerMove)
char
setCharAt(int i, char c)
void
setParent(ST_refstr_t struct)
CString
strchr(char c)
CString
strdup()
java.lang.String
toString()
-
Methods inherited from class smetana.core.UnsupportedC
castTo, comparePointer, copyDataFrom, copyDataFrom, getDebug, getDouble, getInt, getPtr, getStruct, minus, setDouble, setDouble, setInt, setInt, setPtr, setPtr, setStruct, setStruct, unsupported
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface smetana.core.__c__fields
setDouble, setInt, setPtr, setStruct
-
Methods inherited from interface smetana.core.__ptr__
castTo, comparePointer, copyDataFrom, copyDataFrom, getDebug, getDouble, getInt, getPtr, getStruct, minus, setDouble, setInt, setPtr, setStruct, unsupported
-
-
-
-
Method Detail
-
isSameThan
public boolean isSameThan(CString other)
-
memcopyFrom
public void memcopyFrom(Area source)
- Specified by:
memcopyFrom
in interfaceArea
-
duplicate
public CString duplicate()
-
strdup
public CString strdup()
-
addVirtualBytes
public __ptr__ addVirtualBytes(int bytes)
- Specified by:
addVirtualBytes
in interface__ptr__
- Overrides:
addVirtualBytes
in classUnsupportedC
-
getParent
public ST_refstr_t getParent()
-
setParent
public void setParent(ST_refstr_t struct)
-
plus
public CString plus(int pointerMove)
- Specified by:
plus
in interface__ptr__
- Overrides:
plus
in classUnsupportedC
-
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()
-
compareTo
public int compareTo(CString other)
-
compareTo
public int compareTo(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()
-
-