Welcome to mirror list, hosted at ThFree Co, Russian Federation.

index.h « src « irstlm - github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: e4e29d7930797d63cd7614d47e4cc7a293434d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19


#pragma once

#ifdef WIN32

inline const char *index(const char *str, char search)
{
	size_t i=0;
	while (i< strlen(str) ){
		if (str[i]==search) return &str[i];	
	}
	return NULL;
}


#endif