2 // BookmarkDoCoMoResultParser.m
5 // Created by Christian Brunschen on 25/06/2008.
6 // Copyright 2008 Google Inc. All rights reserved.
9 #import "BookmarkDoCoMoResultParser.h"
10 #import "URIParsedResult.h"
12 @implementation BookmarkDoCoMoResultParser
14 + (ParsedResult *)parsedResultForString:(NSString *)s {
15 NSRange foundRange = [s rangeOfString:@"MEBKM:"];
16 if (foundRange.location == NSNotFound) {
20 NSString *urlString = [s fieldWithPrefix:@"URL:"];
21 if (urlString == nil) {
25 NSString *title = [s fieldWithPrefix:@"TITLE:"];
27 return [[[URIParsedResult alloc] initWithURLString:urlString
28 title:title] autorelease];