ifm3d
util.h
1 // -*- c++ -*-
2 /*
3  * Copyright 2018 ifm electronic, gmbh
4  * SPDX-License-Identifier: Apache-2.0
5  */
6 
7 #ifndef IFM3D_DEVICE_UTIL_H
8 #define IFM3D_DEVICE_UTIL_H
9 
10 #include <string>
11 #include <vector>
12 #include <ifm3d/device/device_export.h>
13 
14 namespace ifm3d
15 {
19  IFM3D_DEVICE_EXPORT std::string& ltrim(
20  std::string& str,
21  const std::string& chars = "\t\n\v\f\r ");
22 
26  IFM3D_DEVICE_EXPORT std::string& rtrim(
27  std::string& str,
28  const std::string& chars = "\t\n\v\f\r ");
29 
33  IFM3D_DEVICE_EXPORT std::string& trim(
34  std::string& str,
35  const std::string& chars = "\t\n\v\f\r ");
36 
40  IFM3D_DEVICE_EXPORT std::vector<std::string> split(const std::string& in,
41  char delim);
42 
43 } // end: namespace ifm3d
44 
45 #endif // IFM3D_CAMERA_UTIL_H