logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

TTF_GetNextTextSubString - Get the next substring in a text object

Availability

       This function is available since SDL_ttf 3.0.0.

SDL_ttf                                           SDL_ttf 3.2.2                      TTF_GetNextTextSubString(3)

Description

       If   called   at   the   end   of   the  text,  this  will  return  a  zero  length  substring  with  the
       TTF_SUBSTRING_TEXT_END
        flag set.

Function Parameters

text   the TTF_Text
               to query.

       substring
              the TTF_SubString
               to query.

       next   a pointer filled in with the next substring.

Header File

       Defined in SDL3_ttf/SDL_ttf.h

Name

       TTF_GetNextTextSubString - Get the next substring in a text object

Return Value

       Returns true on success or false on failure; call SDL_GetError() for more information.

Synopsis

#include"SDL3_ttf/SDL_ttf.h"boolTTF_GetNextTextSubString(TTF_Text*text,constTTF_SubString*substring,TTF_SubString*next);

Thread Safety

       This function should be called on the thread that created the text.

See Also