You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RLAPIFilePathListLoadDirectoryFilesEx(constchar*basePath, constchar*filter, boolscanSubdirs); // Load directory filepaths with extension filtering and recursive directory scan. Use 'DIR' in the filter string to include directories in the result
RLAPI unsignedchar*CompressData(constunsigned char*data, intdataSize, int*compDataSize); // Compress data (DEFLATE algorithm), memory must be MemFree()
@@ -1504,7 +1510,7 @@ RLAPI int GetCodepointPrevious(const char *text, int *codepointSize);
1504
1510
RLAPIconstchar*CodepointToUTF8(intcodepoint, int*utf8Size); // Encode one codepoint into UTF-8 byte array (array length returned as parameter)
1505
1511
1506
1512
// Text strings management functions (no UTF-8 strings, only byte chars)
1507
-
// WARNING 1: Most of these functions use internal static buffers, it's recommended to store returned data on user-side for re-use
1513
+
// WARNING 1: Most of these functions use internal static buffers[], it's recommended to store returned data on user-side for re-use
1508
1514
// WARNING 2: Some strings allocate memory internally for the returned strings, those strings must be free by user using MemFree()
1509
1515
RLAPIchar**LoadTextLines(constchar*text, int*count); // Load text as separate lines ('\n')
1510
1516
RLAPIvoidUnloadTextLines(char**text, intlineCount); // Unload text lines
RLAPI unsignedintTextLength(constchar*text); // Get text length, checks for '\0' ending
1514
1520
RLAPIconstchar*TextFormat(constchar*text, ...); // Text formatting with variables (sprintf() style)
1515
1521
RLAPIconstchar*TextSubtext(constchar*text, intposition, intlength); // Get a piece of a text string
1516
-
RLAPIchar*TextReplace(constchar*text, constchar*replace, constchar*by); // Replace text string (WARNING: memory must be freed!)
1522
+
RLAPIconstchar*TextRemoveSpaces(constchar*text); // Remove text spaces, concat words
1523
+
RLAPIchar*GetTextBetween(constchar*text, constchar*begin, constchar*end); // Get text between two strings
1524
+
RLAPIchar*TextReplace(constchar*text, constchar*search, constchar*replacement); // Replace text string (WARNING: memory must be freed!)
1525
+
RLAPIchar*TextReplaceBetween(constchar*text, constchar*begin, constchar*end, constchar*replacement); // Replace text between two specific strings (WARNING: memory must be freed!)
1517
1526
RLAPIchar*TextInsert(constchar*text, constchar*insert, intposition); // Insert text in a position (WARNING: memory must be freed!)
1518
1527
RLAPIchar*TextJoin(char**textList, intcount, constchar*delimiter); // Join text strings with delimiter
1519
1528
RLAPIchar**TextSplit(constchar*text, chardelimiter, int*count); // Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
1520
-
RLAPIvoidTextAppend(char*text, constchar*append, int*position); // Append text at specific position and move cursor!
1521
-
RLAPIintTextFindIndex(constchar*text, constchar*find); // Find first text occurrence within a string, -1 if not found
1529
+
RLAPIvoidTextAppend(char*text, constchar*append, int*position); // Append text at specific position and move cursor
1530
+
RLAPIintTextFindIndex(constchar*text, constchar*search);// Find first text occurrence within a string, -1 if not found
1522
1531
RLAPIchar*TextToUpper(constchar*text); // Get upper case version of provided string
1523
1532
RLAPIchar*TextToLower(constchar*text); // Get lower case version of provided string
1524
1533
RLAPIchar*TextToPascal(constchar*text); // Get Pascal case notation version of provided string
0 commit comments