# `GSGlyphNameContainsSuffix`

*Function*

Whether a glyph name contains a suffix delimited by glyph-name separators.

## Declaration

```swift
func GSGlyphNameContainsSuffix(_ glyphName: String?, _ suffix: String) -> Bool
```

```objc
BOOL GSGlyphNameContainsSuffix(NSString *glyphName, NSString *suffix);
```

```python
GSGlyphNameContainsSuffix(glyphName: str, suffix: str) -> bool
```

## Parameters

- `glyphName` — The glyph name to search.
- `suffix` — The suffix, including its leading separator. For example, `.tf` or `-ar`.

## Discussion

A match must end the name or be followed by `.`, `-`, or `_`. Include the leading separator in `suffix`.

## See Also

### Strings

- [`GSCharNeedsQuotes`](/Core/GlyphsCore/GSCharNeedsQuotes)
- [`GSStringNeedsQuotes`](/Core/GlyphsCore/GSStringNeedsQuotes) — checks if the string needs quotes. &plain returns if there are non ascii chars that need UTF encoding
- [`GSStringByIsolatingCombiningMarks`](/Core/GlyphsCore/GSStringByIsolatingCombiningMarks) — Inserts U+25CC DOTTED CIRCLE in front of every combining mark.

