extension

Top  Previous  Next

Scripts > Class elements and c++ instructions > File handling > extension

 

Prototype

 

str extension( const str& xsPath );

 

Description

 

If the substring after the last path separator in the path xsPath contains a dot ('.'), the substring starting with the dot is returned. Otherwise an empty string is returned.

 

 

Example:

 

out << extension("D:\\TextTransformer\\Settings\\EditDefault.ds");

 

Output::

 

.ds

 

 



This page belongs to the TextTransformer Documentation

Home  Content  German