another stub

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39114 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2015-11-01 23:28:18 +00:00
parent 24f387f8a7
commit f8a6a45133
2 changed files with 284 additions and 0 deletions

View file

@ -108,6 +108,22 @@
# include <unicode/usearch.h>
#endif
/* Create local inline versions of key functions for case-insensitive operations
*/
#import "Additions/unicode/caseconv.h"
static inline unichar
uni_toupper(unichar ch)
{
unichar result = gs_toupper_map[ch / 256][ch % 256];
return result ? result : ch;
}
static inline unichar
uni_tolower(unichar ch)
{
unichar result = gs_tolower_map[ch / 256][ch % 256];
return result ? result : ch;
}
#import "GNUstepBase/Unicode.h"
extern BOOL GSScanDouble(unichar*, unsigned, double*);

View file

@ -2090,4 +2090,272 @@ execute_xpath(xmlNodePtr node, NSString *xpath_exp, NSDictionary *constants,
}
@end
#else
#import "Foundation/NSXMLNode.h"
@implementation NSXMLNode
+ (id) attributeWithName: (NSString*)name
stringValue: (NSString*)stringValue
{
return nil;
}
+ (id) attributeWithName: (NSString*)name
URI: (NSString*)URI
stringValue: (NSString*)stringValue
{
return nil;
}
+ (id) commentWithStringValue: (NSString*)stringValue
{
return nil;
}
+ (id) DTDNodeWithXMLString: (NSString*)string
{
return nil;
}
+ (id) document
{
return nil;
}
+ (id) documentWithRootElement: (NSXMLElement*)element
{
return nil;
}
+ (id) elementWithName: (NSString*)name
{
return nil;
}
+ (id) elementWithName: (NSString*)name
children: (NSArray*)children
attributes: (NSArray*)attributes
{
return nil;
}
+ (id) elementWithName: (NSString*)name
URI: (NSString*)URI
{
return nil;
}
+ (id) elementWithName: (NSString*)name
stringValue: (NSString*)string
{
return nil;
}
+ (NSString*) localNameForName: (NSString*)name
{
return nil;
}
+ (id) namespaceWithName: (NSString*)name
stringValue: (NSString*)stringValue
{
return nil;
}
+ (NSXMLNode*) predefinedNamespaceForPrefix: (NSString*)name
{
return nil;
}
+ (NSString*) prefixForName: (NSString*)name
{
return nil;
}
+ (id) processingInstructionWithName: (NSString*)name
stringValue: (NSString*)stringValue
{
return nil;
}
+ (id) textWithStringValue: (NSString*)stringValue
{
return nil;
}
- (NSString*) canonicalXMLStringPreservingComments: (BOOL)comments
{
return nil;
}
- (NSXMLNode*) childAtIndex: (NSUInteger)index
{
return nil;
}
- (NSUInteger) childCount
{
return 0;
}
- (NSArray*) children
{
return nil;
}
- (id) copyWithZone: (NSZone*)zone
{
return nil;
}
- (void) detach
{
}
- (NSUInteger) index
{
return 0;
}
- (id) init
{
DESTROY(self);
return nil;
}
- (id) initWithKind: (NSXMLNodeKind)theKind
{
return [self init];
}
- (id) initWithKind: (NSXMLNodeKind)theKind options: (NSUInteger)theOptions
{
return [self init];
}
- (NSXMLNodeKind) kind
{
return 0;
}
- (NSUInteger) level
{
return 0;
}
- (NSString*) localName
{
return nil;
}
- (NSString*) name
{
return nil;
}
- (NSXMLNode*) nextNode
{
return nil;
}
- (NSXMLNode*) nextSibling
{
return nil;
}
- (id) objectValue
{
return nil;
}
- (NSXMLNode*) parent
{
return nil;
}
- (NSString*) prefix
{
return nil;
}
- (NSXMLNode*) previousNode
{
return nil;
}
- (NSXMLNode*) previousSibling
{
return nil;
}
- (NSXMLDocument*) rootDocument
{
return nil;
}
- (NSString*) stringValue
{
return nil;
}
- (void) setObjectValue: (id)value
{
}
- (void) setName: (NSString *)name
{
}
- (void) setStringValue: (NSString*)string
{
}
- (void) setStringValue: (NSString*)string resolvingEntities: (BOOL)resolve
{
}
- (void) setURI: (NSString*)URI
{
}
- (NSString*) URI
{
return nil;
}
- (NSString*) XMLString
{
return nil;
}
- (NSString*) XMLStringWithOptions: (NSUInteger)theOptions
{
return nil;
}
- (NSString*) XPath
{
return nil;
}
- (NSArray*) nodesForXPath: (NSString*)anxpath error: (NSError**)error
{
return nil;
}
- (NSArray*) objectsForXQuery: (NSString*)xquery
constants: (NSDictionary*)constants
error: (NSError**)error
{
return nil;
}
- (NSArray*) objectsForXQuery: (NSString*)xquery error: (NSError**)error
{
return nil;
}
@end
#endif /* HAVE_LIBXML */