mirror of
				https://github.com/OpenMW/openmw.git
				synced 2025-10-31 01:26:38 +00:00 
			
		
		
		
	Moving classes from components/misc into Misc namespace. Note: Misc namespace introduced conflict with ESM::Misc and MWClass::Misc classes, so both of them are renamed to ESM::Miscellaneous and MWClass::Miscellaneous. Signed-off-by: Lukasz Gromanowski <lgromanowski@gmail.com>
		
			
				
	
	
		
			21 lines
		
	
	
	
		
			517 B
		
	
	
	
		
			C++
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
	
		
			517 B
		
	
	
	
		
			C++
		
	
	
	
	
	
| #ifndef MISC_STRINGOPS_H
 | |
| #define MISC_STRINGOPS_H
 | |
| 
 | |
| namespace Misc
 | |
| {
 | |
| 
 | |
| /// Returns true if str1 begins with substring str2
 | |
| bool begins(const char* str1, const char* str2);
 | |
| 
 | |
| /// Returns true if str1 ends with substring str2
 | |
| bool ends(const char* str1, const char* str2);
 | |
| 
 | |
| /// Case insensitive, returns true if str1 begins with substring str2
 | |
| bool ibegins(const char* str1, const char* str2);
 | |
| 
 | |
| /// Case insensitive, returns true if str1 ends with substring str2
 | |
| bool iends(const char* str1, const char* str2);
 | |
| 
 | |
| }
 | |
| 
 | |
| #endif
 |