Ejemplo n.º 1
0
			BOOTIL_EXPORT void TrimBefore( Bootil::BString& str, const Bootil::BString& strFind, bool bIncluding )
			{
				std::size_t i = str.find( strFind.c_str() );
				if ( i == std::string::npos ) return;

				if ( bIncluding )
					str = str.substr( i + strFind.length() );
				else
					str = str.substr( i + 1 );
			}
Ejemplo n.º 2
0
	int Buffer::WriteString( const Bootil::BString & str )
	{
		int iWritten = 0;

		for ( int i = 0; i < str.length(); i++ )
		{
			WriteType<char>( str[i] );
			iWritten++;
		}

		WriteType<char>( 0 );
		iWritten++;
		return iWritten;
	}