source: trunk/ICeCoffEE/ICeCoffEE/ICeCoffEEParser.h@ 388

Last change on this file since 388 was 322, checked in by Nicholas Riley, 17 years ago

ICeCoffEE.[hm]: Move parsing functions (ICCF_CheckRange,
ICCF_Delimiters, ICCF_ParseURL) and Internet Config start/stop
routines (ICCF_Stop/StartIC) to ICeCoffEEParser.[hm] so they can be
tested outside the APE. Also move ICCF_MAX_URL_LEN definition, and
extract guts of NSTextView parsing into ICCF_URLEnclosingRange.
Remove comment about TXNClick; if MLTE is deprecated I'm not going to
mess with it.

ICeCoffEEParser.[hm]: Moved everything discussed above to here.

ICeCoffEEServices.m: Some comments, now I realize how irritating the
service localization problem is.

ICeCoffEETerminal.m: Remove long-unused reference to
ICeCoffEEScanner.h (was from 1.2?).

ICeCoffEEScanner.[hm]: Removed, no longer in use.

TestParser.m: Very simple first pass at testing. There's much more I
want to do here.

urls.plist: First pass at URL test cases.

ICeCoffEE.xcodeproj: Add TestParser target (yes, it uses ZeroLink
because my machine is slow and it actually helps).

File size: 742 bytes
Line 
1//
2// ICeCoffEEParser.h
3// ICeCoffEE
4//
5// Created by Nicholas Riley on 6/21/07.
6// Copyright 2007 Nicholas Riley. All rights reserved.
7//
8
9#import <Foundation/Foundation.h>
10
11NSRange ICCF_URLEnclosingRange(NSString *s, NSRange range);
12
13// throws an exception if the URL range is nonexistent or too big
14void ICCF_CheckRange(NSRange range);
15
16// returns NSCharacterSets representing valid URL delimiters for left and right sides
17void ICCF_Delimiters(NSCharacterSet **leftPtr, NSCharacterSet **rightPtr);
18
19// start Internet Config (before ICCF_LaunchURL)
20void ICCF_StartIC();
21
22// stop Internet Config (after ICCF_LaunchURL)
23void ICCF_StopIC();
24
25// calls ICParseURL, returns output range
26void ICCF_ParseURL(NSString *string, NSRange *range);
27
Note: See TracBrowser for help on using the repository browser.