INGOR
Loading...
Searching...
No Matches
ytStrBuff.h
1/*
2 util/ytStrBuff.{h,c} : String Buffer
3 Copyright (C) 2018, Yoshinori Tamada <tamada A T ytlab.jp>
4 All rights reserved.
5
6 See LICENSE.txt for details of the licensing agreement.
7*/
8#ifndef __YTLIB_STR_BUFF_H
9#define __YTLIB_STR_BUFF_H
10#include <stdlib.h>
11typedef struct ytStrBuff_t ytStrBuff;
12ytStrBuff * ytStrBuff_new();
13void ytStrBuff_delete(void * this);
14ytStrBuff * ytStrBuff_expand(ytStrBuff * this, size_t length);
15ytStrBuff * ytStrBuff_add(ytStrBuff * this, char c);
16ytStrBuff * ytStrBuff_addStr(ytStrBuff * this, const char * str);
17size_t ytStrBuff_length(const ytStrBuff * this);
18size_t ytStrBuff_len(const ytStrBuff * this);
19const char * ytStrBuff_str(const ytStrBuff * this);
20void * ytStrBuff_ptr(const ytStrBuff * this);
21void ytStrBuff_clear(ytStrBuff * this);
22char * ytStrBuff_gen(const ytStrBuff * this);
23#endif /* __YTLIB_STR_BUFF_H */
Expandable String Buffer.
Definition ytStrBuff.c:15