FOSSology  3.2.0rc1
Open Source License Compliance by Open Source Software
nomos_gap.h
1 /*
2 Copyright (C) 2013-2014, Siemens AG
3 
4 This program is free software; you can redistribute it and/or
5 modify it under the terms of the GNU General Public License
6 version 2 as published by the Free Software Foundation.
7 
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12 
13 You should have received a copy of the GNU General Public License along
14 with this program; if not, write to the Free Software Foundation, Inc.,
15 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
16 */
17 
18 #ifndef NOMOS_GAP_H
19 #define NOMOS_GAP_H
20 #ifndef _GNU_SOURCE
21 #define _GNU_SOURCE
22 #endif /* not defined _GNU_SOURCE */
23 #include <glib.h>
24 
25 struct PairPosOff {
26  int pos;
27  int off;
28 };
29 typedef struct PairPosOff pairPosOff;
30 
31 pairPosOff* getPairPosOff(GArray* in, int index);
32 int uncollapsePosition(int collapsedPos, GArray* shifter);
33 GArray* collapseSpaces(char* text);
34 GArray* collapseInvisible(char* text, char invisible);
35 #endif /* NOMOS_GAP_H */
GArray * collapseInvisible(char *text, char invisible)
Definition: nomos_gap.c:30
GArray * collapseSpaces(char *text)
Definition: nomos_gap.c:62