ftp.nice.ch/pub/next/developer/resources/classes/MOKit.1.0.0.s.tar.gz#/MOKit_1.0.0/Documentation/Classes/MOSybaseString.rtf

This is MOSybaseString.rtf in view mode; [Download] [Up]

Version 1.0  Copyright ©1992, 1993, 1994 by Mike Ferris.  All Rights Reserved.
Mike Ferris  -  September 18th, 1993



MOSybaseString






Inherits From:	MOString : Object

Declared In:	MOKit/MOSybaseString.h





Class Description

MOSybaseString provides a few new methods which are useful in a DBKit/Sybase context.

Primarily, what is added has to do with case insensitive searches in Sybase.





Instance Variables

<none declared in this class>





Method Types

Initializing the class	+ initialize

Sybase-ish Utilities	- convertUnixWildcardsToSybase
- convertToCaseInsensitiveSearchString
- makeCaseInsensitiveSearchString






Class Methods

initialize
+ initialize

Sets the class version number.





Instance Methods

convertUnixWildcardsToSybase
± convertUnixWildcardsToSybase

Replaces all occurences of '*' with '%', and all occurences of '?' with '_'.  This does not work on unique strings.




convertToCaseInsensitiveSearchString
± convertToCaseInsensitiveSearchString

Converts all alphabetic characters to a sequence that is case-insensitive in Syabse.  For example, either "a" or "A" will be converted to the sequence "[aA]".  All non-alphabetic characters are left alone.  This won't work on unique strings.

See also:   ± makeCaseInsensitiveSearchString




makeCaseInsensitiveSearchString
± makeCaseInsensitiveSearchString

Just like ± convertToCaseInsensitiveSearchString except that the original string is copied, and all changes are done in the new copy.  The original is left alone.  This will work on unique strings.

See also:   ± convertToCaseInsensitiveSearchString





These are the contents of the former NiCE NeXT User Group NeXTSTEP/OpenStep software archive, currently hosted by Netfuture.ch.