#include "../../SDL_internal.h"
#include "../SDL_syslocale.h"
#import <Foundation/Foundation.h>
Go to the source code of this file.
◆ SDL_SYS_GetPreferredLocales()
| void SDL_SYS_GetPreferredLocales |
( |
char * |
buf, |
|
|
size_t |
buflen |
|
) |
| |
Definition at line 28 of file SDL_syslocale.m.
30 NSArray *languages = NSLocale.preferredLanguages;
36 for (
i = 0;
i < numlangs;
i++) {
37 NSString *nsstr = [languages objectAtIndex:i];
45 [nsstr getCString:buf maxLength:buflen encoding:NSASCIIStringEncoding];
63 if (
i < (numlangs - 1)) {
GLuint GLuint GLsizei count
GLenum GLuint GLenum GLsizei const GLchar * buf
return Display return Display Bool Bool int int int return Display XEvent Bool(*) XPointer return Display return Display Drawable _Xconst char unsigned int unsigned int return Display Pixmap Pixmap XColor XColor unsigned int unsigned int return Display _Xconst char char int char return Display Visual unsigned int int int char unsigned int unsigned int in i)
set set set set set set set set set set set set set set set set set set set set *set set set macro pixldst op &r &cond WK op &r &cond WK op &r &cond WK else op &m &cond &ia op &r &cond WK else op &m &cond &ia elseif elseif else error unsupported base if elseif elseif else error unsupported unaligned pixldst unaligned endm macro pixst base base else pixldst base endif endm macro PF ptr
References i, NULL, ptr, SDL_strlen, and SDL_strrchr.