Interface StdString

    • Method Detail

      • size

        long size()
        Specified by:
        size in interface com.alibaba.fastffi.FFIStringProvider
      • data

        long data()
        Specified by:
        data in interface com.alibaba.fastffi.FFIStringProvider
        Specified by:
        data in interface com.alibaba.fastffi.FFIStringReceiver
      • c_str

        long c_str()
      • resize

        void resize​(long size)
        Specified by:
        resize in interface com.alibaba.fastffi.FFIStringReceiver
      • clear

        void clear()
      • push_back

        void push_back​(byte c)
      • at

        byte at​(long index)
        The actual String returns a reference but we can use a value.
        Parameters:
        index - index pos.
        Returns:
        byte at index
      • find

        long find​(StdString str,
                  long pos)
      • find

        default long find​(StdString str)
      • find

        long find​(byte c,
                  long pos)
      • find

        default long find​(byte c)
      • substr

        StdString substr​(long pos,
                         long len)
      • substr

        default StdString substr​(long pos)
      • find_first_of

        long find_first_of​(StdString str,
                           long pos)
      • find_first_of

        long find_first_of​(byte c,
                           long pos)
      • find_first_of

        default long find_first_of​(StdString str)
      • find_first_of

        default long find_first_of​(byte c)
      • find_last_of

        long find_last_of​(StdString str,
                          long pos)
      • find_last_of

        default long find_last_of​(StdString str)
      • find_last_of

        long find_last_of​(byte c,
                          long pos)
      • find_last_of

        default long find_last_of​(byte c)