I have two strings which I'd like to compare: String
and String:
. Is there a library function that would return true when passed these two strings, but false for say String
and OtherString
?
To be precise, I want to know whether one string is a prefix of another.
See Question&Answers more detail:os