Extension

CharacterSet

This extension adds a containment evaluation function to `CharacterSet`.

Declaration

extension CharacterSet

Overview

This extension adds a containment evaluation function to CharacterSet.

Topics

Containment

This extension provides a convenient function for determining if a given UnicodeScalar is part of the current set.

isMember(…)

public func isMember(_ c: UnicodeScalar) -> Bool {
    return contains(UnicodeScalar(c.value)!)
}
background Made with Flow.
underscore Made with Flow.
line2 Made with Flow.
line1 Made with Flow.
circle Made with Flow.
hit Made with Flow.

result(s) found for “”.