Oolite 1.91.0.7646-241128-10e222e
Loading...
Searching...
No Matches
OOEncodingConverter(Private) Category Reference

Instance Methods

(NSData *) - performConversionForString:
 

Detailed Description

Definition at line 63 of file OOEncodingConverter.m.

Method Documentation

◆ performConversionForString:

- (NSData *) performConversionForString: (NSString *) string

Extends class OOEncodingConverter.

Definition at line 249 of file OOEncodingConverter.m.

165 :(NSString *)string
166{
167 NSString *subst = nil;
168 NSEnumerator *substEnum = nil;
169 NSMutableString *mutable = nil;
170
171 mutable = [[string mutableCopy] autorelease];
172 if (mutable == nil) return nil;
173
174 for (substEnum = [_substitutions keyEnumerator]; (subst = [substEnum nextObject]); )
175 {
176 [mutable replaceOccurrencesOfString:subst
177 withString:[_substitutions objectForKey:subst]
178 options:0
179 range:NSMakeRange(0, [mutable length])];
180 }
181
182 return [mutable dataUsingEncoding:_encoding allowLossyConversion:YES];
183}
return nil

The documentation for this category was generated from the following file: