forked from tinycode/xmppframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLibIDN.h
32 lines (26 loc) · 756 Bytes
/
LibIDN.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#import <Foundation/Foundation.h>
@interface LibIDN : NSObject
/**
* Preps a node identifier for use in a JID.
* If the given node is invalid, this method returns nil.
*
* See the XMPP RFC (3920) for details.
*
* Note: The prep properly converts the string to lowercase, as per the RFC.
**/
+ (NSString *)prepNode:(NSString *)node;
/**
* Preps a domain name for use in a JID.
* If the given domain is invalid, this method returns nil.
*
* See the XMPP RFC (3920) for details.
**/
+ (NSString *)prepDomain:(NSString *)domain;
/**
* Preps a resource identifier for use in a JID.
* If the given node is invalid, this method returns nil.
*
* See the XMPP RFC (3920) for details.
**/
+ (NSString *)prepResource:(NSString *)resource;
@end