📄 hoge
字号:
.RE.RSThe return value is the new extensible string object equivalent to the specified object..RE.RE.PPThe function `tcxstrdel' is used in order to delete an extensible string object..PP.RS.br\fBvoid tcxstrdel(TCXSTR *\fIxstr\fB);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RSNote that the deleted object and its derivatives can not be used anymore..RE.RE.PPThe function `tcxstrcat' is used in order to concatenate a region to the end of an extensible string object..PP.RS.br\fBvoid tcxstrcat(TCXSTR *\fIxstr\fB, const void *\fIptr\fB, int \fIsize\fB);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RS`\fIptr\fR' specifies the pointer to the region to be appended..RE.RS`\fIsize\fR' specifies the size of the region..RE.RE.PPThe function `tcxstrcat2' is used in order to concatenate a character string to the end of an extensible string object..PP.RS.br\fBvoid tcxstrcat2(TCXSTR *\fIxstr\fB, const char *\fIstr\fB);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RS`\fIstr\fR' specifies the string to be appended..RE.RE.PPThe function `tcxstrptr' is used in order to get the pointer of the region of an extensible string object..PP.RS.br\fBconst void *tcxstrptr(const TCXSTR *\fIxstr\fB);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RSThe return value is the pointer of the region of the object..RE.RSBecause an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string..RE.RE.PPThe function `tcxstrsize' is used in order to get the size of the region of an extensible string object..PP.RS.br\fBint tcxstrsize(const TCXSTR *\fIxstr\fB);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RSThe return value is the size of the region of the object..RE.RE.PPThe function `tcxstrclear' is used in order to clear an extensible string object..PP.RS.br\fBvoid tcxstrclear(TCXSTR *\fIxstr\fB);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RSThe internal buffer of the object is cleared and the size is set zero..RE.RE.PPThe function `tcxstrtomalloc' is used in order to convert an extensible string object into a usual allocated region..PP.RS.br\fBvoid *tcxstrtomalloc(TCXSTR *\fIxstr\fB);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RSThe return value is the pointer to the allocated region of the object..RE.RSBecause an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. Because the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use. Because the region of the original object is deleted, it should not be deleted again..RE.RE.PPThe function `tcxstrfrommalloc' is used in order to create an extensible string object from an allocated region..PP.RS.br\fBTCXSTR *tcxstrfrommalloc(void *\fIptr\fB, int \fIsize\fB);\fR.RS`\fIptr\fR' specifies the pointer to the region allocated with `malloc' call..RE.RS`\fIsize\fR' specifies the size of the region..RE.RSThe return value is the new extensible string object wrapping the specified region..RE.RSNote that the specified region is released when the object is deleted..RE.RE.PPThe function `tcxstrprintf' is used in order to perform formatted output into an extensible string object..PP.RS.br\fBvoid tcxstrprintf(TCXSTR *\fIxstr\fB, const char *\fIformat\fB, ...);\fR.RS`\fIxstr\fR' specifies the extensible string object..RE.RS`\fIformat\fR' specifies the printf\-like format string. The conversion character `%' can be used with such flag characters as `s', `d', `o', `u', `x', `X', `c', `e', `E', `f', `g', `G', `@', `?', `b', and `%'. `@' works as with `s' but escapes meta characters of XML. `?' works as with `s' but escapes meta characters of URL. `b' converts an integer to the string as binary numbers. The other conversion character work as with each original..RE.RSThe other arguments are used according to the format string..RE.RE.PPThe function `tcsprintf' is used in order to allocate a formatted string on memory..PP.RS.br\fBchar *tcsprintf(const char *\fIformat\fB, ...);\fR.RS`\fIformat\fR' specifies the printf\-like format string. The conversion character `%' can be used with such flag characters as `s', `d', `o', `u', `x', `X', `c', `e', `E', `f', `g', `G', `@', `?', `b', and `%'. `@' works as with `s' but escapes meta characters of XML. `?' works as with `s' but escapes meta characters of URL. `b' converts an integer to the string as binary numbers. The other conversion character work as with each original..RE.RSThe other arguments are used according to the format string..RE.RSThe return value is the pointer to the region of the result string..RE.RSBecause the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use..RE.RE.SH API OF ARRAY LIST.PPThe function `tclistnew' is used in order to create a list object..PP.RS.br\fBTCLIST *tclistnew(void);\fR.RSThe return value is the new list object..RE.RE.PPThe function `tclistnew2' is used in order to create a list object with expecting the number of elements..PP.RS.br\fBTCLIST *tclistnew2(int \fIanum\fB);\fR.RS`\fIanum\fR' specifies the number of elements expected to be stored in the list..RE.RSThe return value is the new list object..RE.RE.PPThe function `tclistdup' is used in order to copy a list object..PP.RS.br\fBTCLIST *tclistdup(const TCLIST *\fIlist\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RSThe return value is the new list object equivalent to the specified object..RE.RE.PPThe function `tclistdel' is used in order to delete a list object..PP.RS.br\fBvoid tclistdel(TCLIST *\fIlist\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RSNote that the deleted object and its derivatives can not be used anymore..RE.RE.PPThe function `tclistnum' is used in order to get the number of elements of a list object..PP.RS.br\fBint tclistnum(const TCLIST *\fIlist\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RSThe return value is the number of elements of the list..RE.RE.PPThe function `tclistval' is used in order to get the pointer to the region of an element of a list object..PP.RS.br\fBconst void *tclistval(const TCLIST *\fIlist\fB, int \fIindex\fB, int *\fIsp\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIindex\fR' specifies the index of the element..RE.RS`\fIsp\fR' specifies the pointer to the variable into which the size of the region of the return value is assigned..RE.RSThe return value is the pointer to the region of the value..RE.RSBecause an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. If `index' is equal to or more than the number of elements, the return value is `NULL'..RE.RE.PPThe function `tclistval2' is used in order to get the string of an element of a list object..PP.RS.br\fBconst char *tclistval2(const TCLIST *\fIlist\fB, int \fIindex\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIindex\fR' specifies the index of the element..RE.RSThe return value is the string of the value..RE.RSIf `index' is equal to or more than the number of elements, the return value is `NULL'..RE.RE.PPThe function `tclistpush' is used in order to add an element at the end of a list object..PP.RS.br\fBvoid tclistpush(TCLIST *\fIlist\fB, const void *\fIptr\fB, int \fIsize\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIptr\fR' specifies the pointer to the region of the new element..RE.RS`\fIsize\fR' specifies the size of the region..RE.RE.PPThe function `tclistpush2' is used in order to add a string element at the end of a list object..PP.RS.br\fBvoid tclistpush2(TCLIST *\fIlist\fB, const char *\fIstr\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIstr\fR' specifies the string of the new element..RE.RE.PPThe function `tclistpushmalloc' is used in order to add an allocated element at the end of a list object..PP.RS.br\fBvoid tclistpushmalloc(TCLIST *\fIlist\fB, void *\fIptr\fB, int \fIsize\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIptr\fR' specifies the pointer to the region allocated with `malloc' call..RE.RS`\fIsize\fR' specifies the size of the region..RE.RSNote that the specified region is released when the object is deleted..RE.RE.PPThe function `tclistpop' is used in order to remove an element of the end of a list object..PP.RS.br\fBvoid *tclistpop(TCLIST *\fIlist\fB, int *\fIsp\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIsp\fR' specifies the pointer to the variable into which the size of the region of the return value is assigned..RE.RSThe return value is the pointer to the region of the removed element..RE.RSBecause an additional zero code is appended at the end of the region of the return value, the return value can be treated as a character string. Because the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use. If the list is empty, the return value is `NULL'..RE.RE.PPThe function `tclistpop2' is used in order to remove a string element of the end of a list object..PP.RS.br\fBchar *tclistpop2(TCLIST *\fIlist\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RSThe return value is the string of the removed element..RE.RSBecause the region of the return value is allocated with the `malloc' call, it should be released with the `free' call when it is no longer in use. If the list is empty, the return value is `NULL'..RE.RE.PPThe function `tclistunshift' is used in order to add an element at the top of a list object..PP.RS.br\fBvoid tclistunshift(TCLIST *\fIlist\fB, const void *\fIptr\fB, int \fIsize\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIptr\fR' specifies the pointer to the region of the new element..RE.RS`\fIsize\fR' specifies the size of the region..RE.RE.PPThe function `tclistunshift2' is used in order to add a string element at the top of a list object..PP.RS.br\fBvoid tclistunshift2(TCLIST *\fIlist\fB, const char *\fIstr\fB);\fR.RS`\fIlist\fR' specifies the list object..RE.RS`\fIstr\fR' specifies the string of the new element..RE.RE.PPThe function `tclistshift' is used in order to remove an element of the top of a list object..PP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -