WebCoreTelephoneParser.h   [plain text]


/*
 *  WebCoreTelephoneParser.h
 *  WebCore
 *
 *  Copyright (C) 2007, Apple Inc.  All rights reserved.
 *
 */

#include "string.h"

#ifdef __cplusplus
extern "C" {
#endif
    
/*
 method: WebCoreFindTelephoneNumber(UniChar [], unsigned *, int *, int *)
 description: parses string looking for a phone number
 in string: Array of UniChars to parse
 in len: Number of characters in 'string'
 out startPos: index of first charcater in phone number, -1 if not found
 out endPos: index of last character in phone number, -1 if not found.
 */
void WebCoreFindTelephoneNumber(const UniChar string[], unsigned len, int *startPos, int *endPos);

/*
 method: WebCoreSetTelephoneNumberParsingEnabled(bool)
 description: Enables/Disables telephone number parsing subsequently created HTML documents.
 in enabled: turn feature on or off 
 */    
void WebCoreSetTelephoneNumberParsingEnabled(bool enabled);

#ifdef __cplusplus
}
#endif