Remove unused file

pull/733/merge
Tatsuhiro Tsujikawa 2016-08-30 21:09:52 +09:00
parent 366e2e8f79
commit e4fd51195d
1 changed files with 0 additions and 16 deletions

16
test.cc
View File

@ -1,16 +0,0 @@
#include <iostream>
#include <algorithm>
int main() {
std::string filepath = "/ahue/hue/hue/kuk.jpg";
auto fn = filepath;
std::string ext;
auto idx = fn.find_last_of(".");
auto slash = fn.find_last_of("\\/");
if (idx != std::string::npos && (slash == std::string::npos || slash < idx)) {
ext = fn.substr(idx);
fn = fn.substr(0, idx);
}
std::cout << "fn:" << fn << " ext:" << ext;
return 0;
}