FOSSology  4.4.0
Open Source License Compliance by Open Source Software
nomos_gap.c File Reference
#include "nomos_gap.h"
#include <stdio.h>
#include <stdlib.h>
Include dependency graph for nomos_gap.c:

Go to the source code of this file.

Functions

GArray * collapseInvisible (char *text, char invisible)
 
GArray * collapseSpaces (char *text)
 
pairPosOffgetPairPosOff (GArray *in, int index)
 
int uncollapsePosition (int collapsedPos, GArray *shifter)
 

Detailed Description

Compile using gcc nomos_gap.c $(pkg-config glib-2.0 --cflags --libs) -std=c99

Definition in file nomos_gap.c.

Function Documentation

◆ collapseInvisible()

GArray* collapseInvisible ( char *  text,
char  invisible 
)

collapse text by elimination of invisible char, returns position+offset pairs

Definition at line 19 of file nomos_gap.c.

◆ collapseSpaces()

GArray* collapseSpaces ( char *  text)

Collapse spaces in text, returns position+offset pairs

Todo:
delete me

Definition at line 51 of file nomos_gap.c.