#import	<GNUstepBase/GSVersionMacros.h>
#import	<Foundation/NSObject.h>
#import <Foundation/NSString.h>
#import	<Foundation/NSError.h> //hys
#import <ADD/Foundation/NSString.h>

@implementation  NSString (ADD)

/*stringWithContentsOfFile:encoding:error:

Returns a string created by reading data from the file at a given path interpreted using a given encoding.

+ (id)stringWithContentsOfFile:(NSString *)path encoding:(NSStringEncoding)enc error:(NSError **)error
Parameters
path

A path to a file.
enc

The encoding of the file at path.
error

If an error occurs, upon returns contains an NSError object that describes the problem. If you are not interested in possible errors, pass in NULL.
Return Value

A string created by reading data from the file named by path using the encoding, enc. If the file can’t be opened or there is an encoding error, returns nil.
Availability
Available in Mac OS X v10.4 and later.
See Also
– initWithContentsOfFile:encoding:error:*/
+ (id)stringWithContentsOfFile:(NSString *)path encoding:(NSStringEncoding)enc error:(NSError **)error{
printf ("stringWithContentsOfFile",path,enc,error);
}


/*decomposedStringWithCompatibilityMapping

Returns a string made by normalizing the receiver’s contents using Form KD.

- (NSString *)decomposedStringWithCompatibilityMapping
Return Value

A string made by normalizing the receiver’s contents using the Unicode Normalization Form KD.
Availability
Available in Mac OS X v10.2 and later.
See Also
– precomposedStringWithCompatibilityMapping
– decomposedStringWithCanonicalMapping*/

- (NSString *)decomposedStringWithCompatibilityMapping{}

@end

