#include <assert.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include "String.hpp"
#include "Memory.hpp"
Go to the source code of this file.
Functions | |
String | String__allocate (unsigned int size) |
Allocate and return for size characters. More... | |
bool | String__equal (String_Const string1, String_Const string2) |
Returns true if string1 equals string2. More... | |
String | String__format (String_Const format,...) |
Return a formatted version of format. More... | |
void | String__free (String_Const string) |
will free memory assciated with string. More... | |
unsigned int | String__size (String_Const string) |
Returns the size of string. More... | |
unsigned int | String__to_unsigned (String_Const string) |
Converts from decimal string into a number and return it. More... | |
String String__allocate | ( | unsigned int | size | ) |
Allocate and return for size characters.
size | is the maximum string size excluding trailing null. |
String__allocate() will return a string that can conatain size characters excluding trailing null.
Definition at line 19 of file String.cpp.
bool String__equal | ( | String_Const | string1, |
String_Const | string2 | ||
) |
Returns true if string1 equals string2.
string1 | is the first String to compare. |
string2 | is the second String to compare. |
String__equal() will return true if string1 is equal to string2 and false otherwise.
Definition at line 31 of file String.cpp.
String String__format | ( | String_Const | format, |
... | |||
) |
Return a formatted version of format.
format | is the string to format. |
... | are the addition arguments to be formatted. |
String__format() will a formatted version of format using the additional variadic arguements.
Definition at line 43 of file String.cpp.
void String__free | ( | String_Const | string | ) |
will free memory assciated with string.
string | to free. |
Definition at line 65 of file String.cpp.
unsigned int String__size | ( | String_Const | string | ) |
Returns the size of string.
string | to get size of. |
String__size() will return the size size of string.
Definition at line 75 of file String.cpp.
unsigned int String__to_unsigned | ( | String_Const | string | ) |
Converts from decimal string into a number and return it.
string | to convert. |
String__to_unsigned() will convert from decimal string into a number and return it.
Definition at line 90 of file String.cpp.