Platforms to show: All Mac Windows Linux Cross-Platform

HasPostfixMBS(Text as String, Prefix as String) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
global method String MBS Util Plugin 18.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes All
Checks whether text has given postfix.
Example
dim t as string = "Hello World"
dim p as string = "Hello"
dim w as string = "World"

if HasPrefixMBS(t, p) then
// ok
else
break
MsgBox "failed?"
end if

if HasPostfixMBS(t, w) then
// ok
else
break
MsgBox "failed?"
end if

if HasPrefixMBS(t, w) then
break
MsgBox "failed?"
else
// ok
end if

if HasPostfixMBS(t, p) then
break
MsgBox "failed?"
else
// ok
end if

Break

Returns true if yes, or false if not.
We may convert text to UTF-8 to compare.

Blog Entries

The items on this page are in the following plugins: MBS Util Plugin.


The biggest plugin in space...