Instance Method
expandWildcards(inNameList:contextLabel:) expandWildcardsInNameList:contextLabel:error: expandWildcardsInNameList_contextLabel_error_
Expands name queries into a set of local glyph names.
Declaration
func expandWildcards(inNameList nameList: [String], contextLabel: String) throws -> Set<String>Declaration
- (NSSet<NSString *> *) expandWildcardsInNameList:(NSArray<NSString *> *) nameList contextLabel:(NSString *) contextLabel error:(NSError **) error;Declaration
expandWildcardsInNameList_contextLabel_error_(nameList: list[str], contextLabel: str) -> tuple[set[str], NSError]Parameters
nameListLiteral glyph names and name queries to expand.
contextLabelA description of the queries’ source for use in errors.
Parameters
nameListLiteral glyph names and name queries to expand.
contextLabelA description of the queries’ source for use in errors.
errorOn output, a pointer to an error object that describes why the method failed, or
nilif no error occurred. If you are not interested in the error information, passnilfor this parameter.
Discussion
Duplicate matches are removed and the order of the names is not preserved.
See Also
Glyph Name Queries
Returns the local glyph names matching a name query.
Returns the part of a matching glyph name represented by
*in a name pattern, ornilwhen the pattern does not contain*or the glyph name is shorter than the pattern.Rebuilds the cache that maps local glyph names to glyphs.