/* * Copyright 2005, Ingo Weinhold . * Copyright 2010, Oliver Tappe, zooey@hirschkaefer.de. * All rights reserved. Distributed under the terms of the MIT license. */ #include #include #include #include "LocaleBackend.h" using BPrivate::Libroot::gLocaleBackend; extern "C" size_t strxfrm(char *out, const char *in, size_t size) { if (gLocaleBackend != NULL) { size_t outSize = 0; status_t status = gLocaleBackend->Strxfrm(out, in, size, outSize); if (status != B_OK) __set_errno(EINVAL); return outSize; } return strlcpy(out, in, size); }