📄 triostr.h
字号:
trio_index_lastTRIO_PROTO((TRIO_CONST char *string, int character));#endif#if defined(TRIO_FUNC_LENGTH)TRIO_PUBLIC_STRING size_ttrio_lengthTRIO_PROTO((TRIO_CONST char *string));#endif#if defined(TRIO_FUNC_LOWER)TRIO_PUBLIC_STRING inttrio_lowerTRIO_PROTO((char *target));#endif#if defined(TRIO_FUNC_MATCH)TRIO_PUBLIC_STRING inttrio_matchTRIO_PROTO((TRIO_CONST char *string, TRIO_CONST char *pattern));#endif#if defined(TRIO_FUNC_MATCH_CASE)TRIO_PUBLIC_STRING inttrio_match_caseTRIO_PROTO((TRIO_CONST char *string, TRIO_CONST char *pattern));#endif#if defined(TRIO_FUNC_SPAN_FUNCTION)TRIO_PUBLIC_STRING size_ttrio_span_functionTRIO_PROTO((char *target, TRIO_CONST char *source, int (*Function) TRIO_PROTO((int))));#endif#if defined(TRIO_FUNC_SUBSTRING)TRIO_PUBLIC_STRING char *trio_substringTRIO_PROTO((TRIO_CONST char *string, TRIO_CONST char *substring));#endif#if defined(TRIO_FUNC_SUBSTRING_MAX)TRIO_PUBLIC_STRING char *trio_substring_maxTRIO_PROTO((TRIO_CONST char *string, size_t max, TRIO_CONST char *substring));#endif#if defined(TRIO_FUNC_TO_DOUBLE)TRIO_PUBLIC_STRING doubletrio_to_doubleTRIO_PROTO((TRIO_CONST char *source, char **endp));#endif#if defined(TRIO_FUNC_TO_FLOAT)TRIO_PUBLIC_STRING floattrio_to_floatTRIO_PROTO((TRIO_CONST char *source, char **endp));#endif#if defined(TRIO_FUNC_TO_LONG)TRIO_PUBLIC_STRING longtrio_to_longTRIO_PROTO((TRIO_CONST char *source, char **endp, int base));#endif#if defined(TRIO_FUNC_TO_LOWER)TRIO_PUBLIC_STRING inttrio_to_lowerTRIO_PROTO((int source));#endif#if defined(TRIO_FUNC_TO_LONG_DOUBLE)TRIO_PUBLIC_STRING trio_long_double_ttrio_to_long_doubleTRIO_PROTO((TRIO_CONST char *source, char **endp));#endif#if defined(TRIO_FUNC_TO_UNSIGNED_LONG)TRIO_PUBLIC_STRING unsigned longtrio_to_unsigned_longTRIO_PROTO((TRIO_CONST char *source, char **endp, int base));#endif#if defined(TRIO_FUNC_TO_UPPER)TRIO_PUBLIC_STRING inttrio_to_upperTRIO_PROTO((int source));#endif#if defined(TRIO_FUNC_TOKENIZE)TRIO_PUBLIC_STRING char *trio_tokenizeTRIO_PROTO((char *string, TRIO_CONST char *delimiters));#endif#if defined(TRIO_FUNC_UPPER)TRIO_PUBLIC_STRING inttrio_upperTRIO_PROTO((char *target));#endif/************************************************************************* * Dynamic string functions *//* * Opaque type for dynamic strings */typedef struct _trio_string_t trio_string_t;#if defined(TRIO_FUNC_STRING_APPEND)TRIO_PUBLIC_STRING inttrio_string_appendTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_CONTAINS)TRIO_PUBLIC_STRING inttrio_string_containsTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_COPY)TRIO_PUBLIC_STRING inttrio_string_copyTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_CREATE)TRIO_PUBLIC_STRING trio_string_t *trio_string_createTRIO_PROTO((int initial_size));#endif#if defined(TRIO_FUNC_STRING_DESTROY)TRIO_PUBLIC_STRING voidtrio_string_destroyTRIO_PROTO((trio_string_t *self));#endif#if defined(TRIO_FUNC_STRING_DUPLICATE)TRIO_PUBLIC_STRING trio_string_t *trio_string_duplicateTRIO_PROTO((trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_EQUAL)TRIO_PUBLIC_STRING inttrio_string_equalTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_EQUAL_MAX)TRIO_PUBLIC_STRING inttrio_string_equal_maxTRIO_PROTO((trio_string_t *self, size_t max, trio_string_t *second));#endif#if defined(TRIO_FUNC_STRING_EQUAL_CASE)TRIO_PUBLIC_STRING inttrio_string_equal_caseTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_EQUAL_CASE_MAX)TRIO_PUBLIC_STRING inttrio_string_equal_case_maxTRIO_PROTO((trio_string_t *self, size_t max, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_EXTRACT)TRIO_PUBLIC_STRING char *trio_string_extractTRIO_PROTO((trio_string_t *self));#endif#if defined(TRIO_FUNC_STRING_FORMAT_DATE_MAX)TRIO_PUBLIC_STRING size_ttrio_string_format_date_maxTRIO_PROTO((trio_string_t *self, size_t max, TRIO_CONST char *format, TRIO_CONST struct tm *datetime));#endif#if defined(TRIO_FUNC_STRING_GET)TRIO_PUBLIC_STRING char *trio_string_getTRIO_PROTO((trio_string_t *self, int offset));#endif#if defined(TRIO_FUNC_STRING_INDEX)TRIO_PUBLIC_STRING char *trio_string_indexTRIO_PROTO((trio_string_t *self, int character));#endif#if defined(TRIO_FUNC_STRING_INDEX_LAST)TRIO_PUBLIC_STRING char *trio_string_index_lastTRIO_PROTO((trio_string_t *self, int character));#endif#if defined(TRIO_FUNC_STRING_LENGTH)TRIO_PUBLIC_STRING inttrio_string_lengthTRIO_PROTO((trio_string_t *self));#endif#if defined(TRIO_FUNC_STRING_LOWER)TRIO_PUBLIC_STRING inttrio_string_lowerTRIO_PROTO((trio_string_t *self));#endif#if defined(TRIO_FUNC_STRING_MATCH)TRIO_PUBLIC_STRING inttrio_string_matchTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_MATCH_CASE)TRIO_PUBLIC_STRING inttrio_string_match_caseTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_SIZE)TRIO_PUBLIC_STRING inttrio_string_sizeTRIO_PROTO((trio_string_t *self));#endif#if defined(TRIO_FUNC_STRING_SUBSTRING)TRIO_PUBLIC_STRING char *trio_string_substringTRIO_PROTO((trio_string_t *self, trio_string_t *other));#endif#if defined(TRIO_FUNC_STRING_TERMINATE)TRIO_PUBLIC_STRING voidtrio_string_terminateTRIO_PROTO((trio_string_t *self));#endif#if defined(TRIO_FUNC_STRING_UPPER)TRIO_PUBLIC_STRING inttrio_string_upperTRIO_PROTO((trio_string_t *self));#endif#if defined(TRIO_FUNC_XSTRING_APPEND)TRIO_PUBLIC_STRING inttrio_xstring_appendTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_APPEND_CHAR)TRIO_PUBLIC_STRING inttrio_xstring_append_charTRIO_PROTO((trio_string_t *self, char character));#endif#if defined(TRIO_FUNC_XSTRING_CONTAINS)TRIO_PUBLIC_STRING inttrio_xstring_containsTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_COPY)TRIO_PUBLIC_STRING inttrio_xstring_copyTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_DUPLICATE)TRIO_PUBLIC_STRING trio_string_t *trio_xstring_duplicateTRIO_PROTO((TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_EQUAL)TRIO_PUBLIC_STRING inttrio_xstring_equalTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_EQUAL_MAX)TRIO_PUBLIC_STRING inttrio_xstring_equal_maxTRIO_PROTO((trio_string_t *self, size_t max, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_EQUAL_CASE)TRIO_PUBLIC_STRING inttrio_xstring_equal_caseTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_EQUAL_CASE_MAX)TRIO_PUBLIC_STRING inttrio_xstring_equal_case_maxTRIO_PROTO((trio_string_t *self, size_t max, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_MATCH)TRIO_PUBLIC_STRING inttrio_xstring_matchTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_MATCH_CASE)TRIO_PUBLIC_STRING inttrio_xstring_match_caseTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#if defined(TRIO_FUNC_XSTRING_SET)TRIO_PUBLIC_STRING voidtrio_xstring_setTRIO_PROTO((trio_string_t *self, char *buffer));#endif#if defined(TRIO_FUNC_XSTRING_SUBSTRING)TRIO_PUBLIC_STRING char *trio_xstring_substringTRIO_PROTO((trio_string_t *self, TRIO_CONST char *other));#endif#ifdef __cplusplus}#endif#endif /* TRIO_TRIOSTR_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -