mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-08-18 06:55:48 +03:00
Added String::replaceAll() and String::replace() for String type.
Added Action::on(). --HG-- branch : dev
This commit is contained in:
@@ -171,9 +171,15 @@ class EE_API String {
|
||||
/** Replace all occurrences of the search string with the replacement string. */
|
||||
static void replaceAll( std::string &target, const std::string& that, const std::string& with );
|
||||
|
||||
/** Replace all occurrences of the search string with the replacement string. */
|
||||
static void replaceAll( String &target, const String& that, const String& with );
|
||||
|
||||
/** Replace the first ocurrence of the search string with the replacement string. */
|
||||
static void replace( std::string& target, const std::string& that, const std::string& with );
|
||||
|
||||
/** Replace the first ocurrence of the search string with the replacement string. */
|
||||
static void replace( String& target, const String& that, const String& with );
|
||||
|
||||
/** Removes the numbers at the end of the string */
|
||||
static std::string removeNumbersAtEnd( std::string txt );
|
||||
|
||||
|
||||
@@ -50,6 +50,8 @@ class EE_API Action {
|
||||
|
||||
Uint32 addEventListener( const ActionType & actionType, const ActionCallback & callback );
|
||||
|
||||
Action * on( const ActionType & actionType, const ActionCallback & callback );
|
||||
|
||||
void removeEventListener( const Uint32 & callbackId );
|
||||
|
||||
void sendEvent( const ActionType & actionType );
|
||||
|
||||
Reference in New Issue
Block a user