Mercurial > audlegacy
view src/libguess/turkish_impl.c @ 3655:047829635612
- -rpath will be automatically set up when --prefix or --exec-prefix is specified. it can be forced to be disabled through --disable-rpath.
- relink audacious if libguess.a is relinked. (do not drop this dependency! thanks.)
author | Yoshiki Yazawa <yaz@cc.rim.or.jp> |
---|---|
date | Thu, 27 Sep 2007 23:27:30 +0900 |
parents | 6bcfc6561711 |
children |
line wrap: on
line source
#include "libguess.h" static const char *_guess_tr(const unsigned char *ptr, int size) { int i; for (i = 0; i < size; i++) { if (ptr[i] == 0x80 || (ptr[i] >= 0x82 && ptr[i] <= 0x8C) || (ptr[i] >= 0x91 && ptr[i] <= 0x9C) || ptr[ i ] == 0x9F) return "CP1254"; } return "ISO-8859-9"; } const char *guess_tr(const char *ptr, int size) { if (dfa_validate_utf8(ptr, size)) return "UTF-8"; return _guess_tr((const unsigned char *)ptr, size); }