Definition at line 63 of file OOEncodingConverter.m.
◆ performConversionForString:
| - (NSData *) performConversionForString: |
|
(NSString *) |
string |
|
Definition at line 248 of file OOEncodingConverter.m.
165 :(NSString *)string
166{
167 NSString *subst =
nil;
168 NSMutableString *
mutable =
nil;
169
170 mutable = [[string mutableCopy] autorelease];
171 if (
mutable ==
nil)
return nil;
172
174 {
175 [mutable replaceOccurrencesOfString:subst
176 withString:[_substitutions objectForKey:subst]
177 options:0
178 range:NSMakeRange(0, [mutable length])];
179 }
180
181 return [mutable dataUsingEncoding:_encoding allowLossyConversion:YES];
182}
#define foreachkey(VAR, DICT)
The documentation for this category was generated from the following file: