2018-02-19 17:37:50 -06:00
|
|
|
// 19 february 2018
|
|
|
|
|
2018-03-08 21:44:35 -06:00
|
|
|
// TODO remove when done migrating these functions
|
|
|
|
#define uiprivNew(x) uiNew(x)
|
|
|
|
#define uiprivAlloc(x, y) uiAlloc(x, y)
|
|
|
|
#define uiprivRealloc(x, y) uiRealloc(x, y)
|
|
|
|
#define uiprivFree(x) uiFree(x)
|
|
|
|
|
2018-02-19 17:37:50 -06:00
|
|
|
// attribute.c
|
2018-03-03 20:27:01 -06:00
|
|
|
extern uiAttribute *uiprivAttributeRetain(uiAttribute *a);
|
|
|
|
extern void uiprivAttributeRelease(uiAttribute *a);
|
2018-02-19 17:37:50 -06:00
|
|
|
extern int uiprivAttributeEqual(const uiAttribute *a, const uiAttribute *b);
|
2018-02-25 19:40:23 -06:00
|
|
|
|
|
|
|
// opentype.c
|
|
|
|
extern int uiprivOpenTypeFeaturesEqual(const uiOpenTypeFeatures *a, const uiOpenTypeFeatures *b);
|
2018-03-03 20:27:01 -06:00
|
|
|
|
|
|
|
// attrlist.c
|
|
|
|
typedef struct uiprivAttrList uiprivAttrList;
|
|
|
|
extern uiprivAttrList *uiprivNewAttrList(void);
|
|
|
|
extern void uiprivFreeAttrList(uiprivAttrList *alist);
|
|
|
|
extern void uiprivAttrListInsertAttribute(uiprivAttrList *alist, uiAttribute *val, size_t start, size_t end);
|
|
|
|
extern void uiprivAttrListInsertCharactersUnattributed(uiprivAttrList *alist, size_t start, size_t count);
|
|
|
|
extern void uiprivAttrListInsertCharactersExtendingAttributes(uiprivAttrList *alist, size_t start, size_t count);
|
|
|
|
extern void uiprivAttrListRemoveAttribute(uiprivAttrList *alist, uiAttribute type, size_t start, size_t end);
|
|
|
|
extern void uiprivAttrListRemoveAttributes(uiprivAttrList *alist, size_t start, size_t end);
|
|
|
|
extern void uiprivAttrListRemoveCharacters(uiprivAttrList *alist, size_t start, size_t end);
|
2018-03-04 10:15:18 -06:00
|
|
|
extern void uiprivAttrListForEach(const uiprivAttrList *alist, const uiAttributedString *s, uiAttributedStringForEachAttributeFunc f, void *data);
|
2018-03-03 21:02:18 -06:00
|
|
|
|
|
|
|
// attrstr.c
|
|
|
|
extern const uint16_t *uiprivAttributedStringUTF16String(uiAttributedString *s);
|
|
|
|
extern size_t uiprivAttributedStringUTF16Len(uiAttributedString *s);
|
|
|
|
extern size_t uiprivAttributedStringUTF8ToUTF16(uiAttributedString *s, size_t n);
|
|
|
|
extern size_t *uiprivAttributedStringCopyUTF8ToUTF16Table(uiAttributedString *s, size_t *n);
|
|
|
|
extern size_t *uiprivAttributedStringCopyUTF16ToUTF8Table(uiAttributedString *s, size_t *n);
|
2018-03-04 09:46:00 -06:00
|
|
|
|
|
|
|
// per-OS graphemes.c/graphemes.cpp/graphemes.m/etc.
|
|
|
|
struct graphemes {
|
|
|
|
size_t len;
|
|
|
|
size_t *pointsToGraphemes;
|
|
|
|
size_t *graphemesToPoints;
|
|
|
|
};
|
|
|
|
extern int uiprivGraphemesTakesUTF16(void);
|
|
|
|
extern struct graphemes *uiprivNewGraphemes(void *s, size_t len);
|