From 445696cfc12a965f4dcd2c9d3a151fa96bac290d Mon Sep 17 00:00:00 2001 From: Josh Soref Date: Thu, 20 Jun 2013 11:29:41 -0400 Subject: [PATCH] Spelling: occurrence --- src/parser.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/parser.c b/src/parser.c index d4d9adea..8d85afc5 100644 --- a/src/parser.c +++ b/src/parser.c @@ -90,7 +90,7 @@ static wchar_t* get_token_data_line(const wchar_t* wtoken, wchar_t* wline) return (wline[r] == 0)?NULL:&wline[r]; } -// Parse a file (ANSI or UTF-8 or UTF-16) and return the data for the first occurence of 'token' +// Parse a file (ANSI or UTF-8 or UTF-16) and return the data for the first occurrence of 'token' // The returned string is UTF-8 and MUST be freed by the caller char* get_token_data_file(const char* token, const char* filename) { @@ -135,7 +135,7 @@ out: return ret; } -// Parse a buffer (ANSI or UTF-8) and return the data for the 'n'th occurence of 'token' +// Parse a buffer (ANSI or UTF-8) and return the data for the 'n'th occurrence of 'token' // The returned string is UTF-8 and MUST be freed by the caller char* get_token_data_buffer(const char* token, unsigned int n, const char* buffer, size_t buffer_size) { @@ -375,7 +375,7 @@ out: return ret; } -// Search for a specific 'src' substring data for all occurences of 'token', and replace +// Search for a specific 'src' substring data for all occurrences of 'token', and replace // it with 'rep'. File can be ANSI or UNICODE and is overwritten. Parameters are UTF-8. // The parsed line is of the form: [ ]token[ ]data // Returns a pointer to rep if replacement occurred, NULL otherwise