mirror of
				https://github.com/pbatard/rufus.git
				synced 2024-08-14 23:57:05 +00:00 
			
		
		
		
	Spelling: occurrence
This commit is contained in:
		
							parent
							
								
									201ab858d6
								
							
						
					
					
						commit
						445696cfc1
					
				
					 1 changed files with 3 additions and 3 deletions
				
			
		|  | @ -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]; | 	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
 | // The returned string is UTF-8 and MUST be freed by the caller
 | ||||||
| char* get_token_data_file(const char* token, const char* filename) | char* get_token_data_file(const char* token, const char* filename) | ||||||
| { | { | ||||||
|  | @ -135,7 +135,7 @@ out: | ||||||
| 	return ret; | 	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
 | // 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) | 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; | 	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.
 | // 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
 | // The parsed line is of the form: [ ]token[ ]data
 | ||||||
| // Returns a pointer to rep if replacement occurred, NULL otherwise
 | // Returns a pointer to rep if replacement occurred, NULL otherwise
 | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue