Method in text · Pattern coil-stdlib

Pattern::is_suffix_of

fn is_suffix_of(P pat, string hay) -> bool
Import
use text::{Pattern};
Source: src/text.hy

Returns true when a match ends at the end of hay.

Parameters#

NameType
patP
haystring

Returns#

bool

See also#

  • Pattern: Something a [Searchable] value can be searched for: a plain string (matched literally), or a type such as coil-regex’s Regex.
  • Pattern::find_in: Returns the span of the leftmost match in hay at or after byte from.
  • Pattern::is_prefix_of: Returns true when a match starts at the beginning of hay.
  • Pattern::expand: Returns the replacement text for the match find_in just returned.
↑ ↓ navigate ↵ open