Choco OS  V.0.16.9.0
Join to the chocolate world
oc_string.h
Go to the documentation of this file.
1 
28 #ifndef INC_OC_STRING_H_
29 #define INC_OC_STRING_H_
30 
31 #include <oc_errors.h>
32 #include <string.h>
33 
34 #define oC_DEFAULT_STRING_SIZE 50
35 
41 #define _________________________________________TYPES_SECTION______________________________________________________________________________
42 
45 typedef char * oC_String_t;
46 
47 typedef const char * oC_ConstString_t;
48 
49 typedef char oC_DefaultString_t[oC_DEFAULT_STRING_SIZE];
50 
51 #undef _________________________________________TYPES_SECTION______________________________________________________________________________
52 
59 #define _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
60 
63 extern oC_String_t oC_String_New ( uint32_t Length );
64 extern oC_ErrorCode_t oC_String_Delete ( oC_String_t * String );
65 
66 extern void string_reverse ( char * String );
67 extern void remove_in_string( char * String , uint32_t Index , uint32_t NumberOfCharacters );
68 extern uint32_t put_to_string ( char * String , uint32_t Size , uint32_t Index , char C );
69 extern uint32_t string_backspace( char * String , uint32_t Index );
70 extern bool string_contains ( const char * String , const char * SubString , bool CaseSensitive );
71 extern bool string_contains_special_characters( const char * String);
72 
73 #undef _________________________________________FUNCTIONS_SECTION__________________________________________________________________________
74 
76 #endif /* INC_OC_STRING_H_ */