Skip to content

Commit 61e51fd

Browse files
authored
Merge pull request #791 from ccgus/robertmryan/update-documentation
Update header comments & documentation
2 parents eae75f1 + d09c0d8 commit 61e51fd

File tree

8 files changed

+482
-451
lines changed

8 files changed

+482
-451
lines changed

src/extra/fts3/FMDatabase+FTS3.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,12 @@ extern NSString *const kFTSCommandAutoMerge; // "automerge=%u"
3636
+ (void)registerTokenizer:(id<FMTokenizerDelegate>)tokenizer withKey:(NSString *)key;
3737

3838
/**
39-
Calls the `fts3_tokenizer()` function on this database, installing tokenizer module with the 'fmdb' name.
39+
Calls the @c fts3_tokenizer function on this database, installing tokenizer module with the 'fmdb' name.
4040
*/
4141
- (BOOL)installTokenizerModule;
4242

4343
/**
44-
Calls the `fts3_tokenizer()` function on this database, installing the tokenizer module with specified name.
44+
Calls the @c fts3_tokenizer function on this database, installing the tokenizer module with specified name.
4545
*/
4646
- (BOOL)installTokenizerModuleWithName:(NSString *)name;
4747

@@ -89,8 +89,8 @@ typedef struct FMTokenizerCursor
8989

9090
/**
9191
Enumerate each set of offsets in the result. The column number can be turned into a column name
92-
using `[FMResultSet columnNameForIndex:]`. The `matchRange` is in UTF-8 byte positions, so it must be
93-
modified to use with `NSString` data.
92+
using `[FMResultSet columnNameForIndex:]`. The @c matchRange is in UTF-8 byte positions, so it must be
93+
modified to use with @c NSString data.
9494
*/
9595
- (void)enumerateWithBlock:(void (^)(NSInteger columnNumber, NSInteger termNumber, NSRange matchRange))block;
9696

@@ -102,12 +102,12 @@ typedef struct FMTokenizerCursor
102102
@interface FMResultSet (FTS3)
103103

104104
/**
105-
Returns a structure containing values from the `offsets()` function. Make sure the column index corresponds
105+
Returns a structure containing values from the @c offsets function. Make sure the column index corresponds
106106
to the column index in the SQL query.
107107
108108
@param columnIdx Zero-based index for column.
109109
110-
@return `FMTextOffsets` structure.
110+
@return @c FMTextOffsets structure.
111111
*/
112112
- (FMTextOffsets *)offsetsForColumnIndex:(int)columnIdx;
113113

src/extra/fts3/FMTokenizers.h

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ NS_ASSUME_NONNULL_BEGIN
1818

1919
/**
2020
Create the tokenizer with a given locale. The locale will be used to initialize the string tokenizer and to lowercase the parsed word.
21-
The locale can be `NULL`, in which case the current locale will be used.
21+
22+
23+
@param locale The locale used by the simple tokenizer. The locale can be @c NULL , in which case the current locale will be used.
2224
*/
2325
- (instancetype)initWithLocale:(CFLocaleRef _Nullable)locale;
2426

@@ -35,12 +37,18 @@ NS_ASSUME_NONNULL_BEGIN
3537

3638
/**
3739
Load a stop-word tokenizer using a file containing words delimited by newlines. The file should be encoded in UTF-8.
40+
41+
@param wordFileURL The file URL for the list of words.
42+
@param tokenizer The @c FMTokenizerDelegate .
43+
@param error The @c NSError if there was any error reading the file.
3844
*/
3945
+ (instancetype)tokenizerWithFileURL:(NSURL *)wordFileURL baseTokenizer:(id<FMTokenizerDelegate>)tokenizer error:(NSError * _Nullable *)error;
4046

4147
/**
42-
Initialize an instance of the tokenizer using the set of words. The words should be lowercase if you're using the
48+
Initialize an instance of the tokenizer using the set of words. The words should be lowercase if you're using the
4349
`FMSimpleTokenizer` as the base.
50+
@param words The @c NSSet of words.
51+
@param tokenizer The @c FMTokenizerDelegate .
4452
*/
4553
- (instancetype)initWithWords:(NSSet *)words baseTokenizer:(id<FMTokenizerDelegate>)tokenizer;
4654

0 commit comments

Comments
 (0)