Developer Area

Changeset 719

Show
Ignore:
Timestamp:
04/19/10 13:16:30 (4 years ago)
Author:
henri
Message:

Better support for "data:" naptrs
Added description method for naptr

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • apps/iphone/superbook/trunk/DotTel_SDK/Classes/RecordNaptr.m

    r593 r719  
    143143                        } 
    144144                } 
     145                // Check for special data:, prefix on URI content 
     146                if ([uriContent hasPrefix:@"data:,"]) { 
     147                        uriContent = [uriContent stringByReplacingCharactersInRange:NSMakeRange(0, [@"data:," length]) withString:@""]; 
     148                } 
     149                 
    145150                labelDescription = [[self generateLabelDescription] retain]; 
    146151                 
     
    314319        return NSOrderedDescending; 
    315320}        
     321 
     322#pragma mark - 
     323#pragma mark description 
     324 
     325- (NSString *)description { 
     326        NSString *desc = [NSString stringWithFormat:@"%@ %@ - %@ (%@): %@ - %d %d %d %d %d", order, preference, 
     327                                          serviceDescription, labelDescription, uriContent, isTerminal, isPrivate, isEncrypted, isHidden, isValid]; 
     328        return desc;     
     329} 
    316330 
    317331#pragma mark - 
Telnic
Search This Site
Partners
Neustar
ICANN
Main site | WHOIS | Sell .tel | FAQ | Archived Site | About Telnic | Contact Us