CARLA
载入中...
搜索中...
未找到
LibCarla
source
carla
StringUtil.cpp
浏览该文件的文档.
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
StringUtil.h
carla::StringUtil::Match
static bool Match(const char *str, const char *wildcard_pattern)
Match str with the Unix shell-style wildcard_pattern.
Definition
StringUtil.cpp:17
carla
This file contains definitions of common data structures used in traffic manager.
Definition
Carla.cpp:133
制作者
1.10.0