mirror of
				https://github.com/raysan5/raylib.git
				synced 2025-11-04 01:34:19 +00:00 
			
		
		
		
	Revert "add const qualifier to the first arg of TextJoin (#5166)"
This reverts commit 4e8d08523f.
			
			
This commit is contained in:
		@@ -1515,7 +1515,7 @@ RLAPI const char *TextFormat(const char *text, ...);
 | 
				
			|||||||
RLAPI const char *TextSubtext(const char *text, int position, int length);                  // Get a piece of a text string
 | 
					RLAPI const char *TextSubtext(const char *text, int position, int length);                  // Get a piece of a text string
 | 
				
			||||||
RLAPI char *TextReplace(const char *text, const char *replace, const char *by);             // Replace text string (WARNING: memory must be freed!)
 | 
					RLAPI char *TextReplace(const char *text, const char *replace, const char *by);             // Replace text string (WARNING: memory must be freed!)
 | 
				
			||||||
RLAPI char *TextInsert(const char *text, const char *insert, int position);                 // Insert text in a position (WARNING: memory must be freed!)
 | 
					RLAPI char *TextInsert(const char *text, const char *insert, int position);                 // Insert text in a position (WARNING: memory must be freed!)
 | 
				
			||||||
RLAPI char *TextJoin(const char **textList, int count, const char *delimiter);              // Join text strings with delimiter
 | 
					RLAPI char *TextJoin(char **textList, int count, const char *delimiter);                    // Join text strings with delimiter
 | 
				
			||||||
RLAPI char **TextSplit(const char *text, char delimiter, int *count);                       // Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
 | 
					RLAPI char **TextSplit(const char *text, char delimiter, int *count);                       // Split text into multiple strings, using MAX_TEXTSPLIT_COUNT static strings
 | 
				
			||||||
RLAPI void TextAppend(char *text, const char *append, int *position);                       // Append text at specific position and move cursor!
 | 
					RLAPI void TextAppend(char *text, const char *append, int *position);                       // Append text at specific position and move cursor!
 | 
				
			||||||
RLAPI int TextFindIndex(const char *text, const char *find);                                // Find first text occurrence within a string, -1 if not found
 | 
					RLAPI int TextFindIndex(const char *text, const char *find);                                // Find first text occurrence within a string, -1 if not found
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -1714,7 +1714,7 @@ char *TextInsert(const char *text, const char *insert, int position)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
// Join text strings with delimiter
 | 
					// Join text strings with delimiter
 | 
				
			||||||
// REQUIRES: memset(), memcpy()
 | 
					// REQUIRES: memset(), memcpy()
 | 
				
			||||||
char *TextJoin(const char **textList, int count, const char *delimiter)
 | 
					char *TextJoin(char **textList, int count, const char *delimiter)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
    static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
 | 
					    static char buffer[MAX_TEXT_BUFFER_LENGTH] = { 0 };
 | 
				
			||||||
    memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);
 | 
					    memset(buffer, 0, MAX_TEXT_BUFFER_LENGTH);
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9754,7 +9754,7 @@
 | 
				
			|||||||
      "returnType": "char *",
 | 
					      "returnType": "char *",
 | 
				
			||||||
      "params": [
 | 
					      "params": [
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
          "type": "const char **",
 | 
					          "type": "char **",
 | 
				
			||||||
          "name": "textList"
 | 
					          "name": "textList"
 | 
				
			||||||
        },
 | 
					        },
 | 
				
			||||||
        {
 | 
					        {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -6933,7 +6933,7 @@ return {
 | 
				
			|||||||
      description = "Join text strings with delimiter",
 | 
					      description = "Join text strings with delimiter",
 | 
				
			||||||
      returnType = "char *",
 | 
					      returnType = "char *",
 | 
				
			||||||
      params = {
 | 
					      params = {
 | 
				
			||||||
        {type = "const char **", name = "textList"},
 | 
					        {type = "char **", name = "textList"},
 | 
				
			||||||
        {type = "int", name = "count"},
 | 
					        {type = "int", name = "count"},
 | 
				
			||||||
        {type = "const char *", name = "delimiter"}
 | 
					        {type = "const char *", name = "delimiter"}
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -3734,7 +3734,7 @@ Function 434: TextJoin() (3 input parameters)
 | 
				
			|||||||
  Name: TextJoin
 | 
					  Name: TextJoin
 | 
				
			||||||
  Return type: char *
 | 
					  Return type: char *
 | 
				
			||||||
  Description: Join text strings with delimiter
 | 
					  Description: Join text strings with delimiter
 | 
				
			||||||
  Param[1]: textList (type: const char **)
 | 
					  Param[1]: textList (type: char **)
 | 
				
			||||||
  Param[2]: count (type: int)
 | 
					  Param[2]: count (type: int)
 | 
				
			||||||
  Param[3]: delimiter (type: const char *)
 | 
					  Param[3]: delimiter (type: const char *)
 | 
				
			||||||
Function 435: TextSplit() (3 input parameters)
 | 
					Function 435: TextSplit() (3 input parameters)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -2474,7 +2474,7 @@
 | 
				
			|||||||
            <Param type="int" name="position" desc="" />
 | 
					            <Param type="int" name="position" desc="" />
 | 
				
			||||||
        </Function>
 | 
					        </Function>
 | 
				
			||||||
        <Function name="TextJoin" retType="char *" paramCount="3" desc="Join text strings with delimiter">
 | 
					        <Function name="TextJoin" retType="char *" paramCount="3" desc="Join text strings with delimiter">
 | 
				
			||||||
            <Param type="const char **" name="textList" desc="" />
 | 
					            <Param type="char **" name="textList" desc="" />
 | 
				
			||||||
            <Param type="int" name="count" desc="" />
 | 
					            <Param type="int" name="count" desc="" />
 | 
				
			||||||
            <Param type="const char *" name="delimiter" desc="" />
 | 
					            <Param type="const char *" name="delimiter" desc="" />
 | 
				
			||||||
        </Function>
 | 
					        </Function>
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user