text_utils.cpp
来自「Particle filtering implementation and ap」· C++ 代码 · 共 18 行
CPP
18 行
#include "text_utils.h"std::string removeExtension(std::string name, std::string ext){ std::string::iterator pos = find_end(name.begin(),name.end(),ext.begin(),ext.end(),ciIsEqual) ; // make sure the occurence is at the end if(pos+ext.size() == name.end()) { return name.substr(0, pos-name.begin()) ; } else { return name ; }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?