BoyerMoore::BoyerMoore(const char* aCstr) { mPat = NULL; size_t len = strlen(aCstr); _Assign(aCstr, len); }
CDEC_NS_BEGIN // -------------------------------------------------------------------------- // void stringx::_Append(PCWSTR pwszRhs, size_t lenRhs) { size_t lenLhs = m_pContent->Length(); PCWSTR pwszLhs = m_pContent->Content(); size_t lenResult = lenLhs + lenRhs; StringContent* pcontNew = StringContent::CreateRawInstance(lenResult); pcontNew->CopyChars(pwszLhs, lenLhs, 0); pcontNew->CopyChars(pwszRhs, lenRhs, lenLhs); pcontNew->WriteTerminatorChar(); Clear(); _Assign(pcontNew); pcontNew->Release(); }
void assign(_Iter _First, _Iter _Last) { // assign [_First, _Last) _Assign(_First, _Last, _Iter_cat(_First)); }
void DwBoyerMoore::Assign(const DwString& aStr) { _Assign(aStr.data(), aStr.length()); }
void DwBoyerMoore::Assign(const char* aCstr) { size_t len = strlen(aCstr); _Assign(aCstr, len); }
const DwBoyerMoore & DwBoyerMoore::operator=( const DwBoyerMoore & other ) { if (this != &other) _Assign(other.mPat, other.mPatLen); return *this; }
DwBoyerMoore::DwBoyerMoore(const DwBoyerMoore & other) : mPat( 0 ), mCiPat( 0 ) { _Assign(other.mPat, other.mPatLen); }
DwBoyerMoore::DwBoyerMoore(const DwString& aStr) : mPat( 0 ), mCiPat( 0 ) { _Assign(aStr.data(), aStr.length()); }
DwBoyerMoore::DwBoyerMoore(const char* aCstr) : mPat( 0 ), mCiPat( 0 ) { size_t len = strlen(aCstr); _Assign(aCstr, len); }
/* void assign (in nsIPrintSettings aPS); */ NS_IMETHODIMP nsPrintSettings::Assign(nsIPrintSettings *aPS) { NS_ENSURE_ARG(aPS); return _Assign(aPS); }
SmartPointer& operator=(const SmartPointer<T> &other) { if (this != &other) { _Assign(other); } return *this; }
SmartPointer(const SmartPointer<T> &other) { _Assign(other); }