CARLA
StringUtil.cpp
Go to the documentation of this file.
1 // Copyright (c) 2017 Computer Vision Center (CVC) at the Universitat Autonoma
2 // de Barcelona (UAB).
3 //
4 // This work is licensed under the terms of the MIT license.
5 // For a copy, see <https://opensource.org/licenses/MIT>.
6 
7 #include "carla/StringUtil.h"
8 
9 #ifdef _WIN32
10 # include <shlwapi.h>
11 #else
12 # include <fnmatch.h>
13 #endif // _WIN32
14 
15 namespace carla {
16 
17  bool StringUtil::Match(const char *str, const char *test) {
18 #ifdef _WIN32
19  return PathMatchSpecA(str, test);
20 #else
21  return 0 == fnmatch(test, str, 0);
22 #endif // _WIN32
23  }
24 
25 } // namespace carla
This file contains definitions of common data structures used in traffic manager. ...
Definition: Carla.cpp:133
static bool Match(const char *str, const char *wildcard_pattern)
Match str with the Unix shell-style wildcard_pattern.
Definition: StringUtil.cpp:17