blob: ac0eaa2625edd11a0e1c3f1acafddb827f64ab6a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
// file : xsde/cxx/string-search.hxx
// copyright : Copyright (c) 2005-2014 Code Synthesis Tools CC
// license : GNU GPL v2 + exceptions; see accompanying LICENSE file
#ifndef XSDE_CXX_STRING_SEARCH_HXX
#define XSDE_CXX_STRING_SEARCH_HXX
#include <stddef.h> // size_t
namespace xsde
{
namespace cxx
{
// Binary search in a sorted string array. Return size if no
// element found.
//
size_t
search (const char* const* array, size_t size, const char* s);
}
}
#endif // XSDE_CXX_STRING_SEARCH_HXX
|