Package smetana.core

Class CString

All Implemented Interfaces:
__ptr__

public final class CString extends UnsupportedC implements __ptr__
  • Constructor Details

    • CString

      public CString(String string)
    • CString

      public CString(int size)
  • Method Details

    • 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(FieldOffset bytes)
      Specified by:
      getTheField in interface __ptr__
      Overrides:
      getTheField in class UnsupportedC
    • 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 String toString()
      Overrides:
      toString in class Object
    • 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()