46 G4int jc= astream.find(
" ", indx);
48 if(jc ==
G4int(G4String::npos))
break;
50 for(; jc<
G4int(astream.length()); ) {
51 if(astream[(
size_t)(jc)]==
' ') jc++;
63 G4int jc= astream.find(
" ", indx);
64 if(jc !=
G4int(G4String::npos))
67 jc= astream.length()+1;
70 for(
G4int j=1; jc+j<
G4int(astream.length()); j++ ) {
71 if(astream[jc+j]==
' ') jc++;
89 if( !(icol>=1 && irow>=1))
91 if(icol>nColumn)
G4cerr <<
"G4UIArrayString: overrange" <<
G4endl;
93 G4int jq= (irow-1)*nColumn + icol;
94 if(jq> nElement)
G4cerr <<
"G4UIArrayString: overrange" <<
G4endl;
97 return &stringArray[jq];
105 if(nElement%nColumn ==0) ni= nElement/nColumn;
106 else ni= nElement/nColumn + 1;
109 if(
nn==0)
nn= nColumn;
111 if(icol<=
nn)
return ni;
120 for (
G4int iy=1; iy<= GetNRow(icol); iy++) {
121 G4int ilen= GetElement(icol,iy)-> length();
125 const char tgt = (*GetElement(icol,iy))[(
size_t)0];
130 if(ilen> maxWidth) maxWidth= ilen;
146 const G4int nwSpace= 2;
147 totalWidth+= (
nColumn-1)*nwSpace;
170 for(
G4int ix=1; ix<=nc; ix++) {
175 const char tgt = word[(size_t)0];
177 colorWord= word.substr(0,5);
180 if(!colorWord.empty())
G4cout << colorWord << std::flush;
183 << word.c_str() << std::flush;
185 if(ix != nc)
G4cout <<
" " << std::flush;
G4GLOB_DLL std::ostream G4cerr
G4GLOB_DLL std::ostream G4cout
G4String * GetElement(G4int icol, G4int irow) const
G4int GetNRow(G4int icol) const
G4int GetNField(G4int icol) const
G4int CalculateColumnWidth() const
G4UIArrayString(const G4String &stream)
G4String strip_copy(G4String str, char c=' ')
Return copy of string with leading and trailing characters removed.