return _mem.isEqual(other._mem,0,tmp);
}
-/*!
- * Assign zero to all values in \a this array. To know more on filling arrays see
- * \ref MEDCouplingArrayFill.
- * \throw If \a this is not allocated.
- */
-void DataArrayChar::fillWithZero()
-{
- fillWithValue(0);
-}
-
/*!
* Returns a textual and human readable representation of \a this instance of
* DataArrayChar. This text is shown when a DataArrayChar is printed in Python.
{
std::size_t lgth=st.length();
if(lgth==0)
- throw INTERP_KERNEL::Exception("DataArrayAsciiChar contructor with string ! Size of input string is null !");
+ throw INTERP_KERNEL::Exception("DataArrayAsciiChar constructor with string ! Size of input string is null !");
alloc(1,lgth);
std::copy(st.begin(),st.begin()+lgth,getPointer());
}
DataArrayAsciiChar::DataArrayAsciiChar(const std::vector<std::string>& vst, char defaultChar)
{
if(vst.empty())
- throw INTERP_KERNEL::Exception("DataArrayAsciiChar contructor with vector of strings ! Empty array !");
+ throw INTERP_KERNEL::Exception("DataArrayAsciiChar constructor with vector of strings ! Empty array !");
std::size_t nbCompo=0;
for(std::vector<std::string>::const_iterator it=vst.begin();it!=vst.end();it++)
nbCompo=std::max(nbCompo,(*it).length());
if(nbCompo==0)
- throw INTERP_KERNEL::Exception("DataArrayAsciiChar contructor with vector of strings ! All strings in not empty vector are empty !");
+ throw INTERP_KERNEL::Exception("DataArrayAsciiChar constructor with vector of strings ! All strings in not empty vector are empty !");
int nbTuples=(int)vst.size();
alloc(nbTuples,(int)nbCompo);
char *pt=getPointer();