8#ifndef MFRAME_F115800B_0B0A_4795_ABFB_A37BD1DE2055
9#define MFRAME_F115800B_0B0A_4795_ABFB_A37BD1DE2055
16#include "./../lang/Memory.h"
17#include "./../lang/Readable.h"
121 return this->
append(readable);
185 return (this->
size() == 0);
int length(void) const
取得資料有效長度
Definition Data.h:139
存儲資料的類別,提供動態記憶體管理功能。
Definition Memory.h:44
E * pointer(void) const
模板方法,取得內部指標並轉換為指定型態(不指定偏移)
Definition Pointer.h:398
字串類別,提供字串操作和記憶體管理功能
Definition Strings.h:33
Strings & append(int value)
在字串尾端新增一個整數
Strings(Strings &&other) noexcept=default
複製建構字串物件
Strings & append(double value)
在字串尾端新增一個浮點數
void convertLower(void)
將字串轉換為小寫
Strings(ufm::lang::Memory memory) noexcept
建構字串物件
Strings & operator+=(const char *str)
插入字串至尾端
Definition Strings.h:110
Strings toLower(void) const
取得小寫字串
Strings & operator+=(ufm::lang::Readable &readable)
插入可讀取物件至尾端
Definition Strings.h:120
Strings & append(const char *str)
在字串尾端新增一個字串
int format(const char *format,...)
virtual int hashdata(void) const override
計算資料雜湊值
static Strings format(int bufferSize, const char *format,...)
格式化字串
static int getHashcode(const char *src)
取得字串的哈希碼
int replace(char oldChar, char newChar)
替換字串中的指定字元
Strings toUpper(void) const
取得大寫字串
int hashcodeUpperCast(void)
以全大寫的形式取得哈希碼
Strings clone(void) const
複製字串
Strings & set(const char *str)
設定字串
Strings(Strings &other) noexcept=default
複製建構字串物件
bool isEmpty(void) const
判斷字串是否為空
Definition Strings.h:184
virtual int hashcode(void) const override
返回對象的哈希碼值。支持這種方法是為了散列表,如HashMap提供的那樣。
Strings & append(ufm::lang::Readable &readable)
在字串尾端新增一個可讀取物件
int size(void) const
取得字串長度
int bufferSize(void)
取的字串原始空間大小
Strings & append(bool boolena)
在字串尾端新增一個布林值
Strings & operator=(const char *str)
設定字串
Definition Strings.h:149
Strings & operator+=(double d)
插入浮點數至尾端
Definition Strings.h:140
void convertUpper(void)
將字串轉換為大寫
static Strings empty(void)
取得空字串
Strings & append(const char c)
在字串尾端新增一個字元
Strings & operator+=(const char ch)
插入字元至尾端
Definition Strings.h:101
int hashcodeLowerCast(void)
以全小寫的形式取得哈希碼
int scanFormat(const char *format,...)
從字串中掃描並解析格式化數據
Strings & operator+=(int i)
插入整數至尾端
Definition Strings.h:130
Strings(int length)
建構字串物件
Definition Strings.h:71
virtual ~Strings(void) override
解構字串物件
Strings(const char *str)
建構字串物件
Strings clone(int length) const
int format(const char *format, va_list arg)
Strings(void *pointer, int size)
建構字串物件
Definition Strings.h:57
Strings clone(int offset, int length) const
char & operator[](int index)
取得指定索引的字元
Definition Strings.h:159
static int getLength(const char *src)
取得字串長度
Definition Appendable.h:23
[Interface] 定義資料讀取介面
Definition Readable.h:46