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

SDL_Locale - A struct to provide locale data.

Availability

       This function is available since SDL 3.2.0.

Description

       Locale  data  is  split  into  a spoken language, like English, and an optional country, like Canada. The
       language will be in ISO-639 format (so English would be "en"), and the country, if not NULL, will  be  an
       ISO-3166 country code (so Canada would be "CA").

Header File

       Defined in SDL3/SDL_locale.h

Name

       SDL_Locale - A struct to provide locale data.

See Also

(3), SDL_GetPreferredLocales(3)

Simple Directmedia Layer                           SDL 3.2.10                                  SDL_Locale(3type)

Synopsis

#include"SDL3/SDL.h"typedefstructSDL_Locale{constchar*language;/**<Alanguagename,likeen"forEnglish.*/constchar*country;/**<Acountry,likeUS"forAmerica.CanbeNULL.*/}SDL_Locale;

See Also