Kanzi Connect  1.1.10
Kanzi Connect C++ API
kanzi::connect::stringutils Namespace Reference

Functions

KANZI_CONNECT_API string chopPath (string &path, const char pathSeparator='.')
 Chop a path to find the first part and modify the path to drop the processed part. More...
 

Function Documentation

◆ chopPath()

KANZI_CONNECT_API string kanzi::connect::stringutils::chopPath ( string &  path,
const char  pathSeparator = '.' 
)

Chop a path to find the first part and modify the path to drop the processed part.

Parameters
path[inout] The path to chop, if separator is found then the first part of the path is dropped
pathSeparator[in] The character which separates the different logical parts of the path
Returns
The first part of the path if pathSeparator is found. Empty string if there are no logical parts left