1
/*------------------------------------------------------------------------------
2
* Copyright (C) 2003-2006 Ben van Klinken and the CLucene Team
4
* Distributable under the terms of either the Apache License (Version 2.0) or
5
* the GNU Lesser General Public License, as specified in the COPYING file.
6
------------------------------------------------------------------------------*/
8
#include "CLucene/_SharedHeader.h"
11
#ifdef _CL_HAVE_SYS_STAT_H
16
const TCHAR* _LUCENE_BLANK_STRING=_T("");
17
const char* _LUCENE_BLANK_ASTRING="";
21
#if defined(_LUCENE_PRAGMA_WARNINGS)
22
#pragma message ("==================Using ascii mode!!!==================")
24
#warning "==================Using ascii mode!!!=================="
28
wchar_t* lucene_wcsdup( const wchar_t* str ){
29
size_t len = wcslen(str);
30
wchar_t* ret = (wchar_t*)malloc( (len + 1) * sizeof(wchar_t) );