MCPcopy Create free account
hub / github.com/LAStools/LAStools / get_file_name_only

Method get_file_name_only

LASlib/src/laswriter.cpp:1110–1129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1108}
1109
1110const CHAR* LASwriteOpener::get_file_name_only() const
1111{
1112 const CHAR* file_name_only = 0;
1113
1114 if (file_name)
1115 {
1116 I32 len = (I32)strlen(file_name);
1117 while ((len > 0) && (file_name[len] != '\\') && (file_name[len] != '/') && (file_name[len] != ':')) len--;
1118 if (len)
1119 {
1120 file_name_only = file_name + len + 1;
1121 }
1122 else
1123 {
1124 file_name_only = file_name;
1125 }
1126 }
1127
1128 return file_name_only;
1129}
1130
1131const CHAR* LASwriteOpener::get_appendix() const
1132{

Callers 2

mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected