50 if(jc ==
G4int(G4String::npos))
break;
52 for(; jc<
G4int(astream.length()); ) {
53 if(astream[(
size_t)(jc)]==
' ') jc++;
66 if(jc !=
G4int(G4String::npos))
69 jc= astream.length()+1;
72 for(
G4int j=1; jc+j<
G4int(astream.length()); j++ ) {
73 if(astream(jc+j)==
' ') jc++;
91 if( !(icol>=1 && irow>=1))
93 if(icol>nColumn)
G4cerr <<
"G4UIArrayString: overrange" <<
G4endl;
95 G4int jq= (irow-1)*nColumn + icol;
96 if(jq> nElement)
G4cerr <<
"G4UIArrayString: overrange" <<
G4endl;
99 return &stringArray[jq];
107 if(nElement%nColumn ==0) ni= nElement/nColumn;
108 else ni= nElement/nColumn + 1;
111 if(nn==0) nn= nColumn;
113 if(icol<= nn)
return ni;
122 for (
G4int iy=1; iy<= GetNRow(icol); iy++) {
123 G4int ilen= GetElement(icol,iy)-> length();
127 const char tgt = (*GetElement(icol,iy))[(
size_t)0];
132 if(ilen> maxWidth) maxWidth= ilen;
148 const G4int nwSpace= 2;
149 totalWidth+= (
nColumn-1)*nwSpace;
172 for(
G4int ix=1; ix<=nc; ix++) {
179 const char tgt = word[(size_t)0];
181 colorWord= word(0,5);
184 if(!colorWord.empty())
G4cout << colorWord << std::flush;
187 << word.c_str() << std::flush;
189 if(ix != nc)
G4cout <<
" " << std::flush;
str_size index(const char *, G4int pos=0) const
const XML_Char const XML_Char * data
G4String * GetElement(G4int icol, G4int irow) const
G4UIArrayString(const G4String &stream)
G4int CalculateColumnWidth() const
G4int GetNField(G4int icol) const
G4String strip(G4int strip_Type=trailing, char c=' ')
const G4ThreeVector const G4double const
G4GLOB_DLL std::ostream G4cerr
G4int GetNRow(G4int icol) const
G4GLOB_DLL std::ostream G4cout