mirror of
https://github.com/debauchee/barrier.git
synced 2026-07-11 14:27:57 +08:00
updated pluging loader for Windows #4313
This commit is contained in:
@@ -168,6 +168,17 @@ findReplaceAll(
|
||||
}
|
||||
}
|
||||
|
||||
String
|
||||
removeFileExt(String filename)
|
||||
{
|
||||
unsigned dot = filename.find_last_of('.');
|
||||
|
||||
if (dot == String::npos) {
|
||||
return filename;
|
||||
}
|
||||
|
||||
return filename.substr(0, dot);
|
||||
}
|
||||
|
||||
//
|
||||
// CaselessCmp
|
||||
|
||||
@@ -64,6 +64,12 @@ Finds \c find inside \c subject and replaces it with \c replace
|
||||
*/
|
||||
void findReplaceAll(String& subject, const String& find, const String& replace);
|
||||
|
||||
//! Remove file extension
|
||||
/*!
|
||||
Finds the last dot and remove all characters from the dot to the end
|
||||
*/
|
||||
String removeFileExt(String filename);
|
||||
|
||||
//! Case-insensitive comparisons
|
||||
/*!
|
||||
This class provides case-insensitve comparison functions.
|
||||
|
||||
Reference in New Issue
Block a user