diff --git a/src/kits/support/String.cpp b/src/kits/support/String.cpp index 74c368c45c..5803b586e7 100644 --- a/src/kits/support/String.cpp +++ b/src/kits/support/String.cpp @@ -1,4 +1,4 @@ -/* +/* * Copyright 2001-2006, Haiku, Inc. All Rights Reserved. * Distributed under the terms of the MIT License. * @@ -9,7 +9,7 @@ * Axel Dörfler, axeld@pinc-software.de */ -/*! String class supporting common string operations. */ +/* String class supporting common string operations. */ #include @@ -34,7 +34,7 @@ const char *B_EMPTY_STRING = ""; -//! helper function, returns minimum of two given values (but clamps to 0): +// helper function, returns minimum of two given values (but clamps to 0): static inline int32 min_clamp0(int32 num1, int32 num2) { @@ -45,7 +45,7 @@ min_clamp0(int32 num1, int32 num2) } -//! helper function, returns length of given string (but clamps to given maximum): +// helper function, returns length of given string (but clamps to given maximum): static inline int32 strlen_clamp(const char* str, int32 max) { // this should yield 0 for max<0: @@ -56,7 +56,7 @@ strlen_clamp(const char* str, int32 max) } -//! helper function, massages given pointer into a legal c-string: +// helper function, massages given pointer into a legal c-string: static inline const char * safestr(const char* str) { @@ -64,7 +64,7 @@ safestr(const char* str) } -//! helper class for BString::_ReplaceAtPositions(): +// helper class for BString::_ReplaceAtPositions(): struct BString::PosVect { PosVect() @@ -140,26 +140,8 @@ private: // #pragma mark - -/*! - \class BString - \brief String class supporting common string operations - - BString is a string allocation and manipulation class. The object - takes care to allocate and free memory for you, so it will always be - "big enough" to store your strings. - - \author Stefano Ceccherini - \author Lowercase ------------------------------------------------*/ // ToLower -/*! \brief Converts the BString to lowercase - \return This function always returns *this . -*/ BString& BString::ToLower() { @@ -1753,9 +1424,6 @@ BString::ToLower() // ToUpper -/*! \brief Converts the BString to uppercase - \return This function always returns *this . -*/ BString& BString::ToUpper() { @@ -1769,9 +1437,6 @@ BString::ToUpper() // Capitalize -/*! \brief Converts the first character to uppercase, rest to lowercase - \return This function always returns *this . -*/ BString& BString::Capitalize() { @@ -1790,12 +1455,6 @@ BString::Capitalize() // CapitalizeEachWord -/*! \brief Converts the first character of every word to uppercase, rest to lowercase. - - Converts the first character of every "word" (series of alpabetical characters - separated by non alphabetical characters) to uppercase, and the rest to lowercase. - \return This function always returns *this . -*/ BString& BString::CapitalizeEachWord() { @@ -2310,7 +1969,7 @@ BString::_AssertNotUsingAsCString() const // #pragma mark - backwards compatibility -/*! +/* Translates to (missing const): BString& BString::operator<<(BString& string) */