125
122
savePath_ = (*filePath.rbegin() == DIR_SEPARATOR_CH) ? filePath : filePath + DIR_SEPARATOR_STR;
130
126
nonFilenameCharacter(char c)
132
128
return not(std::isalnum(c) or c == '_' or c == '.');
135
131
// Replace any character that is inappropriate for a filename with '_'
139
135
std::replace_if(s.begin(), s.end(), nonFilenameCharacter, '_');
144
139
void AudioRecord::initFilename(const std::string &peerNumber)