make libiast usable with C++
This commit is contained in:
parent
61d36a546b
commit
7e9e632b15
3 changed files with 24 additions and 0 deletions
|
@ -3,6 +3,14 @@
|
|||
#ifndef __HARVARD_KYOTO_H
|
||||
#define __HARVARD_KYOTO_H
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int encode_harvard_kyoto_to_iast(const char *text, char **out);
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __HARVARD_KYOTO_H */
|
||||
|
|
|
@ -3,6 +3,10 @@
|
|||
#ifndef __TRANSLITERATION_H
|
||||
#define __TRANSLITERATION_H
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
enum translit_letter_type {
|
||||
VOWEL,
|
||||
CONSONANT,
|
||||
|
@ -30,4 +34,8 @@ static inline int is_devanagari(unsigned int code)
|
|||
return code >= 0x0900 && code <= 0x097f;
|
||||
}
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __TRANSLITERATION_H */
|
||||
|
|
|
@ -3,7 +3,15 @@
|
|||
#ifndef __VELTHUIS_H
|
||||
#define __VELTHUIS_H
|
||||
|
||||
#if defined (__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int encode_velthuis_to_iast(const char *text, char **out);
|
||||
int encode_iast_to_velthuis(const char *text, char **out);
|
||||
|
||||
#if defined (__cplusplus)
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif /* __VELTHUIS_H */
|
||||
|
|
Loading…
Reference in a new issue