Make FcCharSetMerge() public
That's needed for apps to be abled to do pruning themselves without the performance penalty of recreating new charsets all the time.
This commit is contained in:
parent
3b725d0a31
commit
d230cf144f
|
@ -98,6 +98,19 @@ Returns a set including only those chars found in either <parameter>a</parameter
|
|||
Returns a set including only those chars found in <parameter>a</parameter> but not <parameter>b</parameter>.
|
||||
@@
|
||||
|
||||
@RET@ FcCharSet *
|
||||
@FUNC@ FcCharSetMerge
|
||||
@TYPE1@ const FcCharSet * @ARG1@ a
|
||||
@TYPE2@ const FcCharSet * @ARG2@ b
|
||||
@PURPOSE@ Merge charsets
|
||||
@DESC@
|
||||
If <parameter>a</parameter> is NULL, returns a copy of <parameter>b</parameter>.
|
||||
If <parameter>a</parameter> is an FcCharSet object owned by fontconfig that
|
||||
cannot be modified, it returns the union of <parameter>a</parameter> and
|
||||
<parameter>b</parameter> in a newly-created FcCharSet object.
|
||||
Otherwise, adds all chars in <parameter>b</parameter> to <parameter>a</parameter> and returns <parameter>a</parameter>. In other words, this is an in-place versionof FcCharSetUnion.
|
||||
@@
|
||||
|
||||
@RET@ FcBool
|
||||
@FUNC@ FcCharSetHasChar
|
||||
@TYPE1@ const FcCharSet * @ARG1@ fcs
|
||||
|
|
|
@ -439,6 +439,9 @@ FcCharSetUnion (const FcCharSet *a, const FcCharSet *b);
|
|||
FcPublic FcCharSet*
|
||||
FcCharSetSubtract (const FcCharSet *a, const FcCharSet *b);
|
||||
|
||||
FcPublic FcCharSet *
|
||||
FcCharSetMerge (FcCharSet *a, const FcCharSet *b);
|
||||
|
||||
FcPublic FcBool
|
||||
FcCharSetHasChar (const FcCharSet *fcs, FcChar32 ucs4);
|
||||
|
||||
|
|
|
@ -653,9 +653,6 @@ FcNameUnparseValueList (FcStrBuf *buf,
|
|||
FcPrivate FcCharLeaf *
|
||||
FcCharSetFindLeafCreate (FcCharSet *fcs, FcChar32 ucs4);
|
||||
|
||||
FcPrivate FcCharSet *
|
||||
FcCharSetMerge (FcCharSet *a, const FcCharSet *b);
|
||||
|
||||
FcPrivate FcBool
|
||||
FcCharSetSerializeAlloc(FcSerialize *serialize, const FcCharSet *cs);
|
||||
|
||||
|
|
Loading…
Reference in New Issue