ARSA Language  2.8
(Encryption, GPU and Web 3.0)
string.h
Go to the documentation of this file.
1 
137 class string
138 {
139 public:
140 
142 
152  char charat( const char* str, int index );
153 
155 
164  */
165  int size( const char* str );
166 
168 
179  const char* replace( const char* str, const char* toReplace, const char* replaceWith );
180 
182 
193  const char* sub(const char* str, int begin, int length );
194 
197 
207  const char* erase(const char* str, int index );
208 
212 
216  const char* trim(const char* str);
217 
219 
228  const char* lower(const char* str);
229 
231 
240  const char* upper(const char* str);
241 
243 
253  */
254  bool empty(const char* str);
255 
257 
268  int find(const char* str, const char* another, int start = 0);
269 
271 
286  const char* cat(const char* str, const char* strcat1, ...);
287 
289 
293  const char* strip(const char* str);
294 
297 
303  int tok(const char* str, const char* tok_chars = " |,", bool use_all_tok_chars = false);
304 
307 
321  const char* tokn(const char* str, int num, const char* tok_chars = " |,", bool use_all_tok_chars = false);
322 
324 
339  bool tofile(const char* filename, const char* str, bool append = false, const char* encode = "utf8");
340 
342 
347  bool cmp(const char* str1, const char* str2);
348 
350 
359  const char* replacewhitespace(const char* str);
360 
362 
372  const char* addprefix(const char* src, const char* prefix);
373 
375 
385  const char* addsuffix(const char* src, const char* suffix);
386 
388 
398  */
399  int findlast(const char* str, const char* findwhat);
400 
402 
412  */
413  const char* findclearlast(const char* str, const char* findwhat);
414 
416 
426  const char* findclearfirst(const char* str, const char* findwhat);
427 
429 
438  const char* base64encode(const char* str);
439 
441 
449  const char* base64decode(const char* str);
450 
452 
461  const char* urlencode(const char* str);
462 
464 
472  const char* urldecode(const char* str);
473 
475 
484  const char* hexencode(const char* str);
485 
487 
495  const char* hexdecode(const char* str);
496 
498 
507  const char* decencode(const char* str);
508 
510 
518  const char* decdecode(const char* str);
519 
521 
530  const char* binaryencode(const char* str);
531 
533 
541  const char* binarydecode(const char* str);
542 
545 
558  const char* zip(const char* str, const char* aliasname = 0, const char* password = 0, int ram = 16834, int compress_level = -1);
559 
561 
572  const char* unzip(const char* str, const char* aliasname = 0, const char* password = 0, int ram = 16834);
573 
575 
586  const char* compress(const char* str, int ram = 16834, bool speed = false);
587 
589 
598  const char* uncompress(const char* str, int ram = 16834);
599 
601 
610  const char* crc32(const char* str);
611 
613 
622  const char* md5(const char* str);
623 
625 
634  const char* sha256(const char* str);
635 
637 
649  const char* encryption(const char* str, const char* layer, const char* password = 0, int ram = 16834, bool finalize = true);
650 
652 
664  const char* decryption(const char* str, const char* layer, const char* password = 0, int ram = 16834, bool finalize = true);
665 
667 
676  const char* encryption2(const char* str, int ram = 16834);
677 
679 
688  const char* decryption2(const char* str, int ram = 16834);
689 
690 };
const char * hexencode(const char *str)
hex encode
const char * unzip(const char *str, const char *aliasname=0, const char *password=0, int ram=16834)
decompress string in a zip file, option: another way if you want to open its then use faddzip(),...
bool tofile(const char *filename, const char *str, bool append=false, const char *encode="utf8")
Save string to file.
bool cmp(const char *str1, const char *str2)
string compare between str1 and str2.
const char * decryption(const char *str, const char *layer, const char *password=0, int ram=16834, bool finalize=true)
decryption string
*bool empty(const char *str)
Informs if the string is empty or not.
*int size(const char *str)
Returns length of the string's content.
const char * base64encode(const char *str)
base64 encode
const char * cat(const char *str, const char *strcat1,...)
The function concatenates the str string and the strcat string, and the result is stored in return st...
const char * encryption2(const char *str, int ram=16834)
encryption string with algotithms version 2
const char * uncompress(const char *str, int ram=16834)
uncompress string
const char * binaryencode(const char *str)
binary encode
const char * compress(const char *str, int ram=16834, bool speed=false)
compress string
const char * sub(const char *str, int begin, int length)
Returns a substring.
const char * decdecode(const char *str)
dec decode
const char * addsuffix(const char *src, const char *suffix)
add suffix to string.
const char * tokn(const char *str, int num, const char *tok_chars=" |,", bool use_all_tok_chars=false)
const char * replace(const char *str, const char *toReplace, const char *replaceWith)
Replaces all instances of a string with another one.
const char * upper(const char *str)
Makes the string upper case.
const char * binarydecode(const char *str)
binary decode
const char * base64decode(const char *str)
base64 decode
const char * lower(const char *str)
Makes the string lower case.
const char * erase(const char *str, int index)
const char * trim(const char *str)
*const char * findclearlast(const char *str, const char *findwhat)
finds and clear string at last position.
const char * encryption(const char *str, const char *layer, const char *password=0, int ram=16834, bool finalize=true)
encryption string
char charat(const char *str, int index)
Returns character at index.
const char * strip(const char *str)
The strip removes any whitespace at start and end characters.
int tok(const char *str, const char *tok_chars=" |,", bool use_all_tok_chars=false)
const char * urlencode(const char *str)
url encode
const char * sha256(const char *str)
get sha256
const char * zip(const char *str, const char *aliasname=0, const char *password=0, int ram=16834, int compress_level=-1)
*int findlast(const char *str, const char *findwhat)
finds position the ended string by string.
const char * crc32(const char *str)
get crc32
Definition: string.h:137
const char * findclearfirst(const char *str, const char *findwhat)
finds and clear string at first position.
const char * addprefix(const char *src, const char *prefix)
add prefix to string.
const char * md5(const char *str)
get md5
const char * decencode(const char *str)
dec encode
int find(const char *str, const char *another, int start=0)
finds another string in this string
const char * replacewhitespace(const char *str)
replace string \t\n\r\0 to whitespace programming code.
const char * hexdecode(const char *str)
hex decode
const char * urldecode(const char *str)
url decode
const char * decryption2(const char *str, int ram=16834)
decryption string with algotithms version 2