Set eol-style property on all files. Future commits will use the subversion auto-props configuration at http://src.chromium.org/viewvc/chrome/trunk/tools/buildbot/slave/config

git-svn-id: https://chromiumembedded.googlecode.com/svn/trunk@109 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
Marshall Greenblatt
2010-10-03 21:04:50 +00:00
parent 5fc6307a6f
commit 46b831304c
182 changed files with 30470 additions and 30470 deletions

View File

@ -1,55 +1,55 @@
// Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "include/cef_string_list.h"
#include "base/logging.h"
#include <vector>
typedef std::vector<std::wstring> StringList;
CEF_EXPORT cef_string_list_t cef_string_list_alloc()
{
return new StringList;
}
CEF_EXPORT int cef_string_list_size(cef_string_list_t list)
{
DCHECK(list);
StringList* impl = (StringList*)list;
return impl->size();
}
CEF_EXPORT cef_string_t cef_string_list_value(cef_string_list_t list, int index)
{
DCHECK(list);
StringList* impl = (StringList*)list;
DCHECK(index >= 0 && index < (int)impl->size());
if(index < 0 || index >= (int)impl->size())
return NULL;
return cef_string_alloc((*impl)[index].c_str());
}
CEF_EXPORT void cef_string_list_append(cef_string_list_t list, const wchar_t* value)
{
DCHECK(list);
StringList* impl = (StringList*)list;
std::wstring valstr;
if(value)
valstr = value;
impl->push_back(valstr);
}
CEF_EXPORT void cef_string_list_clear(cef_string_list_t list)
{
DCHECK(list);
StringList* impl = (StringList*)list;
impl->clear();
}
CEF_EXPORT void cef_string_list_free(cef_string_list_t list)
{
DCHECK(list);
delete (StringList*)list;
}
// Copyright (c) 2009 The Chromium Embedded Framework Authors. All rights
// reserved. Use of this source code is governed by a BSD-style license that
// can be found in the LICENSE file.
#include "include/cef_string_list.h"
#include "base/logging.h"
#include <vector>
typedef std::vector<std::wstring> StringList;
CEF_EXPORT cef_string_list_t cef_string_list_alloc()
{
return new StringList;
}
CEF_EXPORT int cef_string_list_size(cef_string_list_t list)
{
DCHECK(list);
StringList* impl = (StringList*)list;
return impl->size();
}
CEF_EXPORT cef_string_t cef_string_list_value(cef_string_list_t list, int index)
{
DCHECK(list);
StringList* impl = (StringList*)list;
DCHECK(index >= 0 && index < (int)impl->size());
if(index < 0 || index >= (int)impl->size())
return NULL;
return cef_string_alloc((*impl)[index].c_str());
}
CEF_EXPORT void cef_string_list_append(cef_string_list_t list, const wchar_t* value)
{
DCHECK(list);
StringList* impl = (StringList*)list;
std::wstring valstr;
if(value)
valstr = value;
impl->push_back(valstr);
}
CEF_EXPORT void cef_string_list_clear(cef_string_list_t list)
{
DCHECK(list);
StringList* impl = (StringList*)list;
impl->clear();
}
CEF_EXPORT void cef_string_list_free(cef_string_list_t list)
{
DCHECK(list);
delete (StringList*)list;
}