Definition at line 58 of file OOEncodingConverter.m.
◆ performConversionForString:
| - (NSData *) performConversionForString: |
|
(NSString*) | string |
|
Extends class OOEncodingConverter.
Definition at line 150 of file OOEncodingConverter.m.
150 :(NSString*)string
151{
152 NSString* subst =
nil;
153 NSMutableString*
mutable =
nil;
154
155 mutable = [[string mutableCopy] autorelease];
158
160 {
161 [mutable replaceOccurrencesOfString:subst
162 withString:[_substitutions objectForKey:subst]
163 options:0
164 range:NSMakeRange(0, [mutable length])];
165 }
166
167 return [mutable dataUsingEncoding:_encoding allowLossyConversion:YES];
168}
#define foreachkey(VAR, DICT)
References foreachkey, and nil.
The documentation for this category was generated from the following file: