mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-13 00:04:19 +00:00
Disambiguated a couple of String + std::string operators
This commit is contained in:
parent
b3390dabc9
commit
4793cd3fb8
2 changed files with 6 additions and 0 deletions
|
|
@ -851,6 +851,7 @@ JUCE_API String JUCE_CALLTYPE operator+ (wchar_t s1, const String& s2) {
|
|||
JUCE_API String JUCE_CALLTYPE operator+ (String s1, const String& s2) { return s1 += s2; }
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String s1, const char* s2) { return s1 += s2; }
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String s1, const wchar_t* s2) { return s1 += s2; }
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String s1, const std::string& s2) { return s1 += s2.c_str(); }
|
||||
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String s1, char s2) { return s1 += s2; }
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String s1, wchar_t s2) { return s1 += s2; }
|
||||
|
|
@ -868,6 +869,7 @@ JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, const char* s2) {
|
|||
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, const wchar_t* s2) { return s1 += s2; }
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, const String& s2) { return s1 += s2; }
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, StringRef s2) { return s1 += s2; }
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, const std::string& s2) { return s1 += s2.c_str(); }
|
||||
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, uint8 number) { return s1 += (int) number; }
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& s1, short number) { return s1 += (int) number; }
|
||||
|
|
|
|||
|
|
@ -1304,6 +1304,8 @@ JUCE_API String JUCE_CALLTYPE operator+ (String string1, const char* string2);
|
|||
/** Concatenates two strings. */
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String string1, const wchar_t* string2);
|
||||
/** Concatenates two strings. */
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String string1, const std::string& string2);
|
||||
/** Concatenates two strings. */
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String string1, char characterToAppend);
|
||||
/** Concatenates two strings. */
|
||||
JUCE_API String JUCE_CALLTYPE operator+ (String string1, wchar_t characterToAppend);
|
||||
|
|
@ -1330,6 +1332,8 @@ JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, const wchar_t* strin
|
|||
JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, const String& string2);
|
||||
/** Appends a string to the end of the first one. */
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, StringRef string2);
|
||||
/** Appends a string to the end of the first one. */
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, const std::string& string2);
|
||||
|
||||
/** Appends a decimal number to the end of a string. */
|
||||
JUCE_API String& JUCE_CALLTYPE operator<< (String& string1, uint8 number);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue