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
-
-
Constructor Summary
Constructors Constructor and Description CString(int size)CString(java.lang.String string)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description __ptr__addVirtualBytes(int bytes)charcharAt(int i)intcompareTo(CString other)intcompareTo(CString other, int num)voidcopyFrom(CString source, int nb)CStringduplicate()java.lang.StringgetContent()intgetUid()booleanisSame(CString other)booleanisSameThan(CString other)intlength()voidmemcopyFrom(Area source)CStringplus(int pointerMove)charsetCharAt(int i, char c)voidsetMyFather(__ptr__ struct)CStringstrchr(char c)CStringstrdup()java.lang.StringtoString()-
Methods inherited from class smetana.core.UnsupportedC
call, castTo, comparePointer, copyDataFrom, copyDataFrom, getArrayOfCString, getArrayOfInteger, getArrayOfPtr, getArrayOfStruct, getBoolean, getCString, getDebug, getDouble, getDouble, getInt, getInt, getPtr, getPtr, getStruct, getStruct, minus, setBoolean, setCString, setDouble, setDouble, setInt, setInt, setPtr, setPtr, setStruct, setStruct, unsupported
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface smetana.core.__ptr__
call, castTo, comparePointer, copyDataFrom, copyDataFrom, getDebug, getDouble, getInt, getPtr, getStruct, minus, setDouble, setInt, setPtr, setStruct, unsupported
-
Methods inherited from interface smetana.core.__c__fields
getArrayOfCString, getArrayOfInteger, getArrayOfPtr, getArrayOfStruct, getBoolean, getCString, getDouble, getInt, getPtr, getStruct, setBoolean, setCString, setDouble, setInt, setPtr, setStruct
-
-
-
-
Method Detail
-
isSameThan
public boolean isSameThan(CString other)
-
memcopyFrom
public void memcopyFrom(Area source)
- Specified by:
memcopyFromin interfaceArea
-
duplicate
public CString duplicate()
-
strdup
public CString strdup()
-
addVirtualBytes
public __ptr__ addVirtualBytes(int bytes)
- Specified by:
addVirtualBytesin interface__ptr__- Overrides:
addVirtualBytesin classUnsupportedC
-
plus
public CString plus(int pointerMove)
- Specified by:
plusin interface__ptr__- Overrides:
plusin classUnsupportedC
-
toString
public java.lang.String toString()
- Overrides:
toStringin 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)
-
setMyFather
public void setMyFather(__ptr__ struct)
-
getUid
public int getUid()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG