make libiast usable with C++

This commit is contained in:
Vlasta Vesely 2023-10-30 15:35:14 +01:00
parent 61d36a546b
commit 7e9e632b15
No known key found for this signature in database
GPG key ID: EB0E649DC0DFCC22
3 changed files with 24 additions and 0 deletions

View file

@ -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 */

View file

@ -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 */

View file

@ -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 */