|
Archeus 0.0.0
A C library and game engine that focuses on documentation
|
#include "arc/std/string.h"#include "arc/std/bool.h"#include "arc/std/errno.h"#include <stdint.h>#include <stdlib.h>Go to the source code of this file.
Functions | |
| void | ARC_String_Create (ARC_String **string, char *data, uint64_t length) |
| creates ARC_String type | |
| void | ARC_String_CreateWithStrlen (ARC_String **string, char *data) |
| creates ARC_String type with strinlen | |
| void | ARC_String_CreateEmpty (ARC_String **string, uint64_t length) |
| creates an empty ARC_String type, useful if you want to add to the string over time without having to keep adding to the size | |
| void | ARC_String_Destroy (ARC_String *string) |
| destroys ARC_String type | |
| void | ARC_String_Copy (ARC_String **copy, ARC_String *original) |
| copy a ARC_String | |
| void | ARC_String_CopySubstring (ARC_String **substring, ARC_String *original, uint64_t start, uint64_t length) |
| copy a subtring from a givin ARC_String | |
| void | ARC_String_ReplaceWithSubstring (ARC_String **string, uint64_t start, uint64_t length) |
| replaces a string with a section of itself | |
| void | ARC_String_RemoveSubstring (ARC_String **newString, ARC_String *original, ARC_String *substring) |
| copy a subtring from a givin ARC_String | |
| void | ARC_String_Append (ARC_String **string, ARC_String *append) |
| appends to an ARC_String with an ARC_String | |
| void | ARC_String_AppendCString (ARC_String **string, const char *cstring, uint64_t length) |
| appends to an ARC_String with an ARC_String | |
| void | ARC_String_AppendCStringWithStrlen (ARC_String **string, const char *cstring) |
| appends to an ARC_String with an ARC_String | |
| ARC_Bool | ARC_String_Equals (ARC_String *first, ARC_String *second) |
| checks if two strings are the same | |
| ARC_Bool | ARC_String_EqualsCString (ARC_String *string, const char *cstring, uint64_t length) |
| check if ARC_String and cstring match | |
| ARC_Bool | ARC_String_EqualsCStringWithStrlen (ARC_String *string, const char *cstring) |
| check if ARC_String and cstring match | |
| ARC_Bool | ARC_String_SubstringEquals (ARC_String *first, uint64_t offset, ARC_String *second) |
| check if substring of first equals second string | |
| ARC_Bool | ARC_String_SubstringEqualsCString (ARC_String *string, uint64_t offset, const char *cstring, uint64_t length) |
| check if ARC_String and cstring match | |
| ARC_Bool | ARC_String_IsAlpha (ARC_String *string) |
| checks if string is alphabetic | |
| ARC_Bool | ARC_String_IsNumeric (ARC_String *string) |
| checks if string is made out of only numbers | |
| uint64_t | ARC_String_ToUint64_t (ARC_String *string) |
| converst substring from string to uint64_t | |
| int64_t | ARC_String_ToInt64_t (ARC_String *string) |
| converst substring from string to int64_t | |
| double | ARC_String_ToDouble (ARC_String *string) |
| converst substring from string to double | |
| uint64_t | ARC_String_Find (ARC_String *string, ARC_String *substring) |
| takes a given string, and assigns index and length for position of first matching substring | |
| uint64_t | ARC_String_FindCString (ARC_String *string, const char *cstring, uint64_t length) |
| takes given cstring and gives position of first matching | |
| uint64_t | ARC_String_FindCStringWithStrlen (ARC_String *string, const char *cstring) |
| takes given cstring and gives position of first matching | |
| uint64_t | ARC_String_FindBack (ARC_String *string, ARC_String *substring) |
| takes a given string, and assigns index and length for position of last matching substring | |
| uint64_t | ARC_String_FindBackCString (ARC_String *string, const char *cstring, uint64_t length) |
| takes a given cstring and give position of last matching | |
| uint64_t | ARC_String_FindBackCStringWithStrlen (ARC_String *string, const char *cstring) |
| takes a given cstring and give position of last matching | |
| void | ARC_String_StripEnds (ARC_String **stripped, ARC_String *original, char charToStrip) |
| strips the ends based on a given char | |
| void | ARC_String_StripWhitespace (ARC_String **stripped, ARC_String *original) |
| strips whitespace from a ARC_String | |
| void | ARC_String_StripEndsWhitespace (ARC_String **stripped, ARC_String *original) |
| strips the whitespace from the ends of a string | |
| void | ARC_String_Merge (ARC_String **combined, ARC_String *first, ARC_String *second) |
| merges two strings together | |
| void | ARC_String_RemoveSection (ARC_String **newString, ARC_String *original, uint64_t removeIndex, uint64_t removeLength) |
| copy a subtring from a givin ARC_String | |
| void | ARC_String_ReplaceMatching (ARC_String **string, ARC_String *pattern, ARC_String *replacement) |
| replaces characters in string matching the given pattern | |
| void | ARC_String_CopyReplaceMatching (ARC_String **newString, ARC_String *original, ARC_String *pattern, ARC_String *replacement) |
| replaces characters in a copy of a string matching the given pattern | |
| void | ARC_String_ReplaceMatchingCString (ARC_String **string, char *patternCString, uint64_t patternLength, char *replacementCString, uint64_t replacementLength) |
| replaces characters in string matching the given pattern | |
| void | ARC_String_ReplaceMatchingCStringWithStrlen (ARC_String **string, char *patternCString, char *replacementCString) |
| replaces characters in string matching the given pattern | |
| void ARC_String_Append | ( | ARC_String ** | string, |
| ARC_String * | append ) |
appends to an ARC_String with an ARC_String
| string | the string to add to, will not change on error |
| append | the string that will be added to the back of string |
Definition at line 126 of file string.c.
References ARC_String_AppendCString(), ARC_String::data, and ARC_String::length.
Referenced by ARC_ParserData_HelperRecurseStringAdd(), and ARC_ParserLangParsedData_RecurseStringAdd().
| void ARC_String_AppendCString | ( | ARC_String ** | string, |
| const char * | cstring, | ||
| uint64_t | length ) |
appends to an ARC_String with an ARC_String
| string | the string to add to, will not change on error |
| cstring | the cstring that will be added to the back of string |
| length | the length of the cstring that is being added |
Definition at line 130 of file string.c.
Referenced by ARC_ParserLangParsedData_RecurseStringAdd(), ARC_Ssh_ExecStrInNewSessionAndGetResponse(), ARC_String_Append(), and ARC_String_AppendCStringWithStrlen().
| void ARC_String_AppendCStringWithStrlen | ( | ARC_String ** | string, |
| const char * | cstring ) |
appends to an ARC_String with an ARC_String
| string | the string to add to, will not change on error |
| cstring | the cstring that will be added to the back of string |
Definition at line 143 of file string.c.
References ARC_String_AppendCString().
Referenced by ARC_Config_FileIO().
| void ARC_String_Copy | ( | ARC_String ** | copy, |
| ARC_String * | original ) |
copy a ARC_String
| copy | copy of oldString, will be set to NULL on error |
| original | original string that is being copied |
Definition at line 62 of file string.c.
References arc_errno, ARC_ERRNO_NULL, ARC_String_Create(), ARC_String::data, and ARC_String::length.
Referenced by ARC_Config_RemoveAndRunCommands(), ARC_Config_StripComment(), ARC_LexerTokenRule_CreateAndReturnMatchCharInStringRule(), ARC_LexerTokenRule_CreateAndReturnMatchStringRule(), ARC_Parser_CreateFromString(), ARC_String_CopyReplaceMatching(), ARC_String_RemoveSection(), and ARC_Text_Create().
| void ARC_String_CopyReplaceMatching | ( | ARC_String ** | newString, |
| ARC_String * | original, | ||
| ARC_String * | pattern, | ||
| ARC_String * | replacement ) |
replaces characters in a copy of a string matching the given pattern
| newString | an empty string that this function will fill with a copy with replacements, will be set to NULL and arc_errno set on fail |
| original | the original string that will be copied |
| pattern | the pattern to replace in the string on match |
| replacement | the string that will replace the matched pattern |
Definition at line 537 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_NULL, ARC_String_Copy(), ARC_String_SubstringEquals(), ARC_String::data, and ARC_String::length.
Referenced by ARC_String_ReplaceMatching().
| void ARC_String_CopySubstring | ( | ARC_String ** | substring, |
| ARC_String * | original, | ||
| uint64_t | start, | ||
| uint64_t | length ) |
copy a subtring from a givin ARC_String
| substring | new coppied substring, will be null on error |
| original | string to copy substring from |
| start | starting index in relation on original |
| length | length of substring that is being created |
Definition at line 72 of file string.c.
References arc_errno, ARC_ERRNO_DATA, ARC_ERRNO_NULL, ARC_String_Create(), ARC_String::data, and ARC_String::length.
Referenced by ARC_Audio_Read(), ARC_Config_Get(), ARC_Config_GetNameAndValue(), ARC_Config_Recurse(), ARC_Config_RemoveAndRunCommands(), ARC_Config_RunCommand(), ARC_Config_SetKeyGroup(), ARC_Config_StripComment(), ARC_Point_Read(), ARC_Rect_Read(), ARC_RectArray_Read(), ARC_RectArray_ReadRect(), ARC_SDL_Texture_Read(), ARC_Sprite_Delete(), ARC_Sprite_Read(), ARC_Spritesheet_Delete(), ARC_Spritesheet_Read(), ARC_Spritesheet_ReadTexture(), ARC_String_RemoveSection(), ARC_String_ReplaceWithSubstring(), and ARC_String_StripEndsWhitespace().
| void ARC_String_Create | ( | ARC_String ** | string, |
| char * | data, | ||
| uint64_t | length ) |
creates ARC_String type
| string | ARC_String to create |
| data | cstring that will be stored in ARC_String |
| length | length of ARC_String |
Definition at line 9 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, and ARC_ERRNO_OVERFLOW.
Referenced by ARC_Config_RemoveAndRunCommands(), ARC_Config_RemoveComments(), ARC_Config_RunCommand(), ARC_ConsoleBuffer_AddChar(), ARC_ConsoleView_GetStringInput(), ARC_IO_FileToStr(), ARC_Lexer_AutomataMatchCharOrBetweenFn(), ARC_ParserCSVData_GetDataTag(), ARC_ParserLangParsedData_CreateTagString(), ARC_ParserLangParsedData_GetArgumentTag(), ARC_Ssh_ExecStrInNewSessionAndGetResponse(), ARC_String_Copy(), ARC_String_CopySubstring(), ARC_String_CreateWithStrlen(), ARC_String_Merge(), ARC_String_StripEnds(), ARC_String_StripWhitespace(), and TEST_ParserData_CreateStringFn().
| void ARC_String_CreateEmpty | ( | ARC_String ** | string, |
| uint64_t | length ) |
creates an empty ARC_String type, useful if you want to add to the string over time without having to keep adding to the size
| string | ARC_String to create |
| length | length of ARC_String |
Definition at line 37 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, and ARC_ERRNO_OVERFLOW.
| void ARC_String_CreateWithStrlen | ( | ARC_String ** | string, |
| char * | data ) |
creates ARC_String type with strinlen
| string | ARC_String to create |
| data | cstring that will be stored in ARC_String |
Definition at line 32 of file string.c.
References ARC_String_Create().
Referenced by ARC_Chemical_Create(), ARC_Lexer_InitBasicTokenRules(), ARC_ParserCSV_CreateAsParser(), ARC_ParserLang_InitLexerRulesFn(), ARC_TEST(), ARC_TEST(), ARC_TEST(), ARC_TEST(), ARC_TEST(), ARC_TEST(), ARC_TEST(), ARC_TEST(), and ARC_TEST().
| void ARC_String_Destroy | ( | ARC_String * | string | ) |
destroys ARC_String type
| string | string that will be destroyed |
Definition at line 52 of file string.c.
References ARC_String::data.
Referenced by ARC_Chemical_Create(), ARC_Config_FileIO(), ARC_Config_Get(), ARC_Config_GetNameAndValue(), ARC_Config_Recurse(), ARC_Config_RemoveAndRunCommands(), ARC_Config_RemoveComments(), ARC_Config_RunCommand(), ARC_Config_SetKeyGroup(), ARC_Config_StripComment(), ARC_ConsoleBuffer_AddChar(), ARC_ConsoleBuffer_Clear(), ARC_ConsoleBuffer_Destroy(), ARC_ConsoleShell_Destroy(), ARC_Lexer_InitBasicTokenRules(), ARC_Lexer_LexFile(), ARC_Lexer_LexString(), ARC_LexerToken_VectorDestroyDataFn(), ARC_LexerTokenRule_DestroyStringAutomataDataFn(), ARC_ParserCSV_CreateAsParser(), ARC_ParserCSVData_DestroyFn(), ARC_ParserCSVData_GetDataTag(), ARC_ParserLang_InitLexerRulesFn(), ARC_ParserLangParsedData_CreateBodyTag(), ARC_ParserLangParsedData_GetArgumentTag(), ARC_Point_Read(), ARC_Rect_Read(), ARC_RectArray_Read(), ARC_RectArray_ReadRect(), ARC_SDL_Texture_Read(), ARC_Sprite_Delete(), ARC_Sprite_Read(), ARC_Spritesheet_Delete(), ARC_Spritesheet_Read(), ARC_Spritesheet_ReadTexture(), ARC_Ssh_ExecStrInNewSessionAndGetResponse(), ARC_String_RemoveSection(), ARC_String_ReplaceMatching(), ARC_String_ReplaceMatchingCString(), ARC_String_ReplaceWithSubstring(), ARC_TEST(), ARC_Text_Destroy(), and TEST_ParserData_DestroyStringFn().
| ARC_Bool ARC_String_Equals | ( | ARC_String * | first, |
| ARC_String * | second ) |
checks if two strings are the same
| first | string to check against second |
| second | string to check against first |
Definition at line 147 of file string.c.
References ARC_False, ARC_True, ARC_String::data, and ARC_String::length.
| ARC_Bool ARC_String_EqualsCString | ( | ARC_String * | string, |
| const char * | cstring, | ||
| uint64_t | length ) |
check if ARC_String and cstring match
| string | ARC_string to check |
| cstring | cstring to check |
| length | length of cstring |
Definition at line 159 of file string.c.
References ARC_False, ARC_True, ARC_String::data, and ARC_String::length.
Referenced by ARC_Config_Recurse(), ARC_Config_RunCommand(), and ARC_String_EqualsCStringWithStrlen().
| ARC_Bool ARC_String_EqualsCStringWithStrlen | ( | ARC_String * | string, |
| const char * | cstring ) |
check if ARC_String and cstring match
| string | ARC_string to check |
| cstring | cstring to check |
Definition at line 171 of file string.c.
References ARC_String_EqualsCString().
Referenced by ARC_Chemical_GetStringIdFn(), ARC_ParserCSV_GetStringIdFn(), ARC_TEST(), TEST_Parser_GetStringIdFn(), and TEST_ParserLang_GetIdFn().
| uint64_t ARC_String_Find | ( | ARC_String * | string, |
| ARC_String * | substring ) |
takes a given string, and assigns index and length for position of first matching substring
| string | the string that will be searched |
| substr | substring to find within string |
Definition at line 231 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_NULL, ARC_String::data, and ARC_String::length.
Referenced by ARC_Config_RemoveAndRunCommands(), ARC_Config_RunCommand(), ARC_Config_StripComment(), and ARC_String_RemoveSubstring().
| uint64_t ARC_String_FindBack | ( | ARC_String * | string, |
| ARC_String * | substring ) |
takes a given string, and assigns index and length for position of last matching substring
| string | the string that will be searched |
| substr | substring to find within string |
Definition at line 277 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_NULL, ARC_String::data, and ARC_String::length.
| uint64_t ARC_String_FindBackCString | ( | ARC_String * | string, |
| const char * | cstring, | ||
| uint64_t | length ) |
takes a given cstring and give position of last matching
| string | the string that will be searched |
| cstring | the cstring to find within string |
| length | the length of cstring |
Definition at line 298 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_NULL, ARC_String::data, and ARC_String::length.
Referenced by ARC_String_FindBackCStringWithStrlen().
| uint64_t ARC_String_FindBackCStringWithStrlen | ( | ARC_String * | string, |
| const char * | cstring ) |
takes a given cstring and give position of last matching
| string | the string that will be searched |
| cstring | the cstring to find within string |
Definition at line 319 of file string.c.
References ARC_String_FindBackCString().
| uint64_t ARC_String_FindCString | ( | ARC_String * | string, |
| const char * | cstring, | ||
| uint64_t | length ) |
takes given cstring and gives position of first matching
| string | the string that will be searched |
| cstring | the cstring to find within string |
| length | the length of cstring |
Definition at line 252 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_NULL, ARC_String::data, and ARC_String::length.
Referenced by ARC_Config_Get(), ARC_Config_GetNameAndValue(), ARC_Config_Recurse(), ARC_Config_SetKeyGroup(), ARC_GraphicsConfig_GetIndexAndErrorCheck(), ARC_MathConfig_GetIndexAndErrorCheck(), and ARC_String_FindCStringWithStrlen().
| uint64_t ARC_String_FindCStringWithStrlen | ( | ARC_String * | string, |
| const char * | cstring ) |
takes given cstring and gives position of first matching
| string | the string that will be searched |
| cstring | the cstring to find within string |
Definition at line 273 of file string.c.
References ARC_String_FindCString().
| ARC_Bool ARC_String_IsAlpha | ( | ARC_String * | string | ) |
checks if string is alphabetic
| string | string to check |
Definition at line 192 of file string.c.
References ARC_False, ARC_True, ARC_String::data, and ARC_String::length.
| ARC_Bool ARC_String_IsNumeric | ( | ARC_String * | string | ) |
checks if string is made out of only numbers
| string | string to check |
Definition at line 208 of file string.c.
References ARC_False, ARC_True, and ARC_String::data.
| void ARC_String_Merge | ( | ARC_String ** | combined, |
| ARC_String * | first, | ||
| ARC_String * | second ) |
merges two strings together
| combined | new ARC_String of combined strings frist + second |
| first | first part of string to combine |
| second | second part of string to combine |
Definition at line 485 of file string.c.
References ARC_String_Create(), ARC_String::data, and ARC_String::length.
Referenced by ARC_ConsoleBuffer_AddChar(), and ARC_String_RemoveSection().
| void ARC_String_RemoveSection | ( | ARC_String ** | newString, |
| ARC_String * | original, | ||
| uint64_t | removeIndex, | ||
| uint64_t | removeLength ) |
copy a subtring from a givin ARC_String
| newString | new string without specified section, will be NULL on error |
| original | string to remove section from |
| removeIndex | starting index in relation on original of what is to be removed |
| removeLength | length of section that is being removed |
Definition at line 499 of file string.c.
References ARC_String_Copy(), ARC_String_CopySubstring(), ARC_String_Destroy(), ARC_String_Merge(), and ARC_String::length.
Referenced by ARC_Config_StripComment(), and ARC_String_RemoveSubstring().
| void ARC_String_RemoveSubstring | ( | ARC_String ** | newString, |
| ARC_String * | original, | ||
| ARC_String * | substring ) |
copy a subtring from a givin ARC_String
| newString | string that doesn't have substring in it, will be null on error |
| original | string to remove substring from |
| substring | substring to remove |
Definition at line 116 of file string.c.
References arc_errno, ARC_String_Find(), ARC_String_RemoveSection(), and ARC_String::length.
Referenced by ARC_Config_RemoveAndRunCommands().
| void ARC_String_ReplaceMatching | ( | ARC_String ** | string, |
| ARC_String * | pattern, | ||
| ARC_String * | replacement ) |
replaces characters in string matching the given pattern
| string | the string that will be modified, will discard changes and set arc_errno on fail |
| pattern | the pattern to replace in the string on match |
| replacement | the string that will replace the matched pattern |
Definition at line 525 of file string.c.
References arc_errno, ARC_String_CopyReplaceMatching(), and ARC_String_Destroy().
| void ARC_String_ReplaceMatchingCString | ( | ARC_String ** | string, |
| char * | patternCString, | ||
| uint64_t | patternLength, | ||
| char * | replacementCString, | ||
| uint64_t | replacementLength ) |
replaces characters in string matching the given pattern
| string | the string that will be modified, will discard changes and set arc_errno on fail |
| patternCString | the cstring pattern to replace in the string on match |
| patternLength | the lenght of the cstring pattern |
| replacementCstring | the cstring that will replace the matched pattern |
| replacementLength | the length of the cstring replacement |
Definition at line 580 of file string.c.
References ARC_DEBUG_LOG_ERROR, arc_errno, ARC_ERRNO_NULL, ARC_String_Destroy(), ARC_String_SubstringEqualsCString(), ARC_String::data, and ARC_String::length.
Referenced by ARC_String_ReplaceMatchingCStringWithStrlen().
| void ARC_String_ReplaceMatchingCStringWithStrlen | ( | ARC_String ** | string, |
| char * | patternCString, | ||
| char * | replacement ) |
replaces characters in string matching the given pattern
| string | the string that will be modified, will discard changes and set arc_errno on fail |
| patternCString | the cstring pattern to replace in the string on match |
| replacementCstring | the cstring that will replace the matched pattern |
Definition at line 627 of file string.c.
References ARC_String_ReplaceMatchingCString().
| void ARC_String_ReplaceWithSubstring | ( | ARC_String ** | string, |
| uint64_t | start, | ||
| uint64_t | length ) |
replaces a string with a section of itself
| string | the string to replace, will not change on error |
| start | the starting index of the substring |
| length | the length of the substring |
Definition at line 100 of file string.c.
References arc_errno, ARC_String_CopySubstring(), and ARC_String_Destroy().
Referenced by ARC_Lexer_LexString().
| void ARC_String_StripEnds | ( | ARC_String ** | stripped, |
| ARC_String * | original, | ||
| char | charToStrip ) |
strips the ends based on a given char
| stripped | where to store the string which has witespace stripped will be null if there is an error |
| original | the string which whill have the matching char stripped from |
| charToStrip | the char that will be stripped from the ends |
Definition at line 323 of file string.c.
References arc_errno, ARC_ERRNO_DATA, ARC_ERRNO_NULL, ARC_String_Create(), ARC_String::data, and ARC_String::length.
| void ARC_String_StripEndsWhitespace | ( | ARC_String ** | stripped, |
| ARC_String * | original ) |
strips the whitespace from the ends of a string
| stripped | where to store the string which has witespace stripped from the ends will be null if there is an error |
| original | the string which whill have the whitespace stripped from its ends |
Definition at line 437 of file string.c.
References ARC_String_CopySubstring(), ARC_String::data, and ARC_String::length.
Referenced by ARC_Config_FileIO(), ARC_Config_GetNameAndValue(), ARC_Config_Recurse(), ARC_Config_SetKeyGroup(), ARC_Rect_Read(), ARC_RectArray_Read(), ARC_RectArray_ReadRect(), ARC_SDL_Texture_Read(), ARC_Sprite_Delete(), ARC_Sprite_Read(), ARC_Spritesheet_Delete(), ARC_Spritesheet_Read(), and ARC_Spritesheet_ReadTexture().
| void ARC_String_StripWhitespace | ( | ARC_String ** | stripped, |
| ARC_String * | original ) |
strips whitespace from a ARC_String
| stripped | where to store the string which has witespace stripped will be null if there is an error |
| original | the string which whill have whitespace stripped from |
Definition at line 366 of file string.c.
References arc_errno, ARC_ERRNO_DATA, ARC_ERRNO_NULL, ARC_String_Create(), ARC_String::data, and ARC_String::length.
Referenced by ARC_Config_RunCommand().
| ARC_Bool ARC_String_SubstringEquals | ( | ARC_String * | first, |
| uint64_t | offset, | ||
| ARC_String * | second ) |
check if substring of first equals second string
| first | string to check against second |
| offset | postion based on first to start comparing against second |
| second | string to check against first |
Definition at line 175 of file string.c.
References ARC_String_SubstringEqualsCString(), ARC_String::data, and ARC_String::length.
Referenced by ARC_Lexer_AutomataMatchStringFn(), and ARC_String_CopyReplaceMatching().
| ARC_Bool ARC_String_SubstringEqualsCString | ( | ARC_String * | string, |
| uint64_t | offset, | ||
| const char * | cstring, | ||
| uint64_t | length ) |
check if ARC_String and cstring match
| string | ARC_string to check |
| offset | postion based on string to start comparing against cstring |
| cstring | cstring to check |
| length | length of cstring |
Definition at line 179 of file string.c.
References ARC_False, ARC_True, ARC_String::data, and ARC_String::length.
Referenced by ARC_String_ReplaceMatchingCString(), and ARC_String_SubstringEquals().
| double ARC_String_ToDouble | ( | ARC_String * | string | ) |
converst substring from string to double
| string | string to convert to double |
Definition at line 226 of file string.c.
References ARC_String::data.
| int64_t ARC_String_ToInt64_t | ( | ARC_String * | string | ) |
converst substring from string to int64_t
| string | string to convert to int64_t |
Definition at line 222 of file string.c.
References ARC_String::data.
Referenced by ARC_Point_Read(), ARC_Rect_Read(), and TEST_ParserCSV_CastTypeFn().
| uint64_t ARC_String_ToUint64_t | ( | ARC_String * | string | ) |
converst substring from string to uint64_t
| string | string to convert to uint64_t |
Definition at line 218 of file string.c.
References ARC_String::data.