Online Documentation - Statistics - FAQ - Plugin Parts (All, Dependencies) - Class hierarchy
New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1
The list of the topics, classes, interfaces, controls, modules, global methods by category, global methods by name, screenshots, licenses and examples.
Platforms to show: All Mac Windows Linux Cross-Platform
NSStringCompareMBS(s as string, t as string, options as Integer) as Integer
Type | Topic | Plugin | Version | macOS | Windows | Linux | iOS | Targets |
global method | Cocoa | MBS Main Plugin | 8.6 | ✅ Yes | ❌ No | ❌ No | ✅ Yes | All |
Following constants can be used for the compare:
NSCaseInsensitiveSearch | 1 | Case Insensitive |
NSLiteralSearch | 2 | Exact character-by-character equivalence |
NSBackwardsSearch | 4 | Search from end of source string |
NSAnchoredSearch | 8 | Search is limited to start (or end, if NSBackwardsSearch) of source string |
NSNumericSearch | 64 | Added in 10.2; Numbers within strings are compared using numeric value, that is, Foo2.txt < Foo7.txt < Foo25.txt; only applies to compare methods, not find |
NSDiacriticInsensitiveSearch | 128 | If specified, ignores diacritics (o-umlaut = o) |
NSWidthInsensitiveSearch | 256 | If specified, ignores width differences ('a' = UFF41) |
NSForcedOrderingSearch | 512 | If specified, comparisons are forced to return either NSOrderedAscending or NSOrderedDescending if the strings are equivalent but not strictly equal, for stability when sorting (e.g. "aaa" > "AAA" with NSCaseInsensitiveSearch specified) |
NSOrderedAscending | -1 |
NSOrderedSame | 0 |
NSOrderedDescending | 1 |
The items on this page are in the following plugins: MBS Main Plugin.