chickadee » srfi-152 » string-suffix?

(string-prefix? string₁ string₂ [start₁ end₁ start₂ end₂]) → booleanprocedure
(string-suffix? string₁ string₂ [start₁ end₁ start₂ end₂]) → booleanprocedure

Is string₁ a prefix/suffix of string₂?

The optional start/end indexes restrict the comparison to the indicated substrings of string₁ and string₂.