MCPcopy Create free account
hub / github.com/boostorg/filesystem / find_separator

Function find_separator

src/path.cpp:125–135  ·  view source on GitHub ↗

Returns position of the first directory separator in the \a size initial characters of \a p, or \a size if not found

Source from the content-addressed store, hash-verified

123
124//! Returns position of the first directory separator in the \a size initial characters of \a p, or \a size if not found
125inline size_type find_separator(const wchar_t* p, size_type size) noexcept
126{
127 size_type pos = 0u;
128 for (; pos < size; ++pos)
129 {
130 const wchar_t c = p[pos];
131 if (boost::filesystem::detail::is_directory_separator(c))
132 break;
133 }
134 return pos;
135}
136
137#else // BOOST_FILESYSTEM_WINDOWS_API
138

Callers 5

lexically_normal_v3Method · 0.85
lexically_normal_v4Method · 0.85
generic_path_v3Method · 0.85
generic_path_v4Method · 0.85
path.cppFile · 0.85

Calls 1

is_directory_separatorFunction · 0.85

Tested by

no test coverage detected