blob: a64c38c9be51621d005363fbbf323a23fb955727 (
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-2011 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
|