Returns position of the first directory separator in the \a size initial characters of \a p, or \a size if not found
| 123 | |
| 124 | //! Returns position of the first directory separator in the \a size initial characters of \a p, or \a size if not found |
| 125 | inline 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 |
no test coverage detected