~elementary-os/ubuntu-package-imports/fcitx-xenial

« back to all changes in this revision

Viewing changes to src/module/pinyin-enhance/pinyin-enhance.h

  • Committer: RabbitBot
  • Date: 2016-09-07 20:31:39 UTC
  • Revision ID: rabbitbot@elementary.io-20160907203139-bcsq3wop36c7w6yz
Initial import, version 1:4.2.9.1-1ubuntu1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/***************************************************************************
 
2
 *   Copyright (C) 2012~2012 by Yichao Yu                                  *
 
3
 *   yyc1992@gmail.com                                                     *
 
4
 *                                                                         *
 
5
 *   This program is free software; you can redistribute it and/or modify  *
 
6
 *   it under the terms of the GNU General Public License as published by  *
 
7
 *   the Free Software Foundation; either version 2 of the License, or     *
 
8
 *   (at your option) any later version.                                   *
 
9
 *                                                                         *
 
10
 *   This program is distributed in the hope that it will be useful,       *
 
11
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
 
12
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
 
13
 *   GNU General Public License for more details.                          *
 
14
 *                                                                         *
 
15
 *   You should have received a copy of the GNU General Public License     *
 
16
 *   along with this program; if not, write to the                         *
 
17
 *   Free Software Foundation, Inc.,                                       *
 
18
 *   51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA.              *
 
19
 ***************************************************************************/
 
20
 
 
21
#ifndef _PINYIN_ENHANCE_H
 
22
#define _PINYIN_ENHANCE_H
 
23
 
 
24
#include <stdint.h>
 
25
 
 
26
#ifdef __cplusplus
 
27
extern "C" {
 
28
#endif
 
29
 
 
30
    static inline const int8_t*
 
31
    pinyin_enhance_pylist_get(const int8_t *count, int index)
 
32
    {
 
33
        return count + index * 3 + 1;
 
34
    }
 
35
 
 
36
#ifdef __cplusplus
 
37
}
 
38
#endif
 
39
 
 
40
#endif /* _PINYIN_ENHANCE_H */