#
0b86520c |
|
06-Sep-2021 |
Niels Sascha Reedijk <niels.reedijk@gmail.com> |
BString: add support for move semantics with C++11 and up. This implements the "rule of 5" for this type. While the copy operation for BString was already using shallow copies of the underlying data, this change further optimizes moving the data from one object to another. While it is not the intention to implement move semantics to all types in the legacy Haiku/Be kits, data types like BString are good candidates, because move operations are often useful when working with data within an application. In this implementation, the internal data of the string object will be set to NULL, thus leaving an empty string. Change-Id: I16bf9424f9b17f622b0b57659b80628e18760288 Reviewed-on: https://review.haiku-os.org/c/haiku/+/4428 Reviewed-by: Jérôme Duval <jerome.duval@gmail.com>
|
#
f960e7e9 |
|
28-Mar-2018 |
krish_iyer <krishnaniyer97@gmail.com> |
Support kit: Fixed issues in BString unit tests 1: Changed CPPUNIT_ASSERT -> CPPUNIT_ASSERT_EQUAL 2: Fixed coding style: Added two lines after including libraries, maintained 80 characters(MAX) in each line and space at comment start 3: Fixed the failure for "BString::Search" test "i != 0 by chaning the testing method(StartsWith->IStartsWith) and changed the string to be searched(sT->st) Change-Id: I1237d1f2d0e3af7757963cc940bae929f487f088
|
#
ea4ba5bf |
|
21-Nov-2004 |
shatty <shatty@nowhere.fake> |
address compiler warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10125 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1b0ea0ad |
|
14-Oct-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added some comments to the tests git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1521 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ed1b028f |
|
28-Sep-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
BString construction and CountChars tests git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1234 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ea4ba5bf44692aa73e8cbfba402ef96076e25909 |
|
21-Nov-2004 |
shatty <shatty@nowhere.fake> |
address compiler warnings git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10125 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
1b0ea0ad6dd4b4a5f08e1d3ec72514976cdf7a60 |
|
14-Oct-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
Added some comments to the tests git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1521 a95241bf-73f2-0310-859d-f6bbb57e9c96
|
#
ed1b028fd8d6528bead9aa1039f3f5b7bb8295c3 |
|
28-Sep-2002 |
Stefano Ceccherini <stefano.ceccherini@gmail.com> |
BString construction and CountChars tests git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1234 a95241bf-73f2-0310-859d-f6bbb57e9c96
|