Package smetana.core
Class CString
java.lang.Object
smetana.core.UnsupportedC
smetana.core.CString
- All Implemented Interfaces:
__ptr__
-
Field Summary
Fields inherited from class smetana.core.UnsupportedC
CPT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionchar
charAt
(int i) int
comparePointer
(__ptr__ other) void
java.lang.String
getTheField
(OFFSET bytes) int
getUid()
static CString
gmalloc
(int nbytes) boolean
boolean
isSameThan
(CString other) int
length()
plus_
(int pointerMove) char
setCharAt
(int i, char c) void
setParent
(ST_refstr_t struct) strchr
(char c) int
int
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
-
Constructor Details
-
CString
public CString(java.lang.String string) -
CString
public CString(int size)
-
-
Method Details
-
isSameThan
-
duplicate
-
strdup
-
gmalloc
-
getTheField
- Specified by:
getTheField
in interface__ptr__
- Overrides:
getTheField
in classUnsupportedC
-
getParent
-
setParent
-
plus_
-
comparePointer
-
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
-
strcmp
-
copyFrom
-
strchr
-
isSame
-
getUid
public int getUid()
-