#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <ctype.h>
#include "ResizeArray.h"
#include "InfoStream.h"
#include "Molecule.h"
#include "strlib.h"
#include "MStream.h"
#include "Communicate.h"
#include "Node.h"
#include "ObjectArena.h"
#include "Parameters.h"
#include "PDB.h"
#include "SimParameters.h"
#include "Hydrogen.h"
#include "UniqueSetIter.h"
#include "charm++.h"
#include "ConfigList.h"
#include "Debug.h"
#include "CompressPsf.h"
#include "ParallelIOMgr.h"
#include <deque>
#include <algorithm>
#include <string>
#include <sstream>
#include <fstream>
Go to the source code of this file.
|
std::vector< std::string > | split (const std::string &text, std::string delimiter) |
|
◆ CODE_REDUNDANT
◆ MIN_DEBUG_LEVEL
#define MIN_DEBUG_LEVEL 3 |
Copyright (c) 1995, 1996, 1997, 1998, 1999, 2000 by The Board of Trustees of the University of Illinois. All rights reserved.
Definition at line 31 of file MoleculeQM.C.
◆ cSMDPair
◆ refSelStrMap
◆ refSelStrPair
◆ refSelStrVec
◆ split()
std::vector<std::string> split |
( |
const std::string & |
text, |
|
|
std::string |
delimiter |
|
) |
| |
Definition at line 74 of file MoleculeQM.C.
Referenced by bin_evaluation_1away(), bin_evaluation_k_away(), ReductionMgr::buildSpanTree(), Communicate::Communicate(), NL_msm_configure(), NL_msm_split_name(), partition(), partition_SOA(), Molecule::prepare_qm(), ComputeMsmSerialMgr::recvCoord(), WorkDistrib::savePatchMap(), and setup_grids().
76 std::vector<std::string> tokens;
77 std::size_t start = 0, end = 0;
79 while ((end = text.find(delimiter, start)) != std::string::npos) {
81 std::string temp = text.substr(start, end - start);
83 if (! temp.empty()) tokens.push_back(temp);
85 start = end + delimiter.length();
89 std::string temp = text.substr(start);
90 if (! temp.empty()) tokens.push_back(temp);