OLD | NEW |
(Empty) | |
| 1 /* |
| 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. |
| 5 */ |
| 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ |
| 8 #define NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ |
| 9 |
| 10 #include "native_client/src/include/nacl_assert.h" |
| 11 #include "native_client/src/shared/platform/nacl_check.h" |
| 12 |
| 13 namespace ppapi_proxy { |
| 14 |
| 15 void DebugPrintf(const char* format, ...); |
| 16 |
| 17 // Check to see if |data| points to a valid UTF8 string. Checks at most |len| |
| 18 // characters. See http://tools.ietf.org/html/rfc3629 for details. |
| 19 bool StringIsUtf8(const char* data, uint32_t len); |
| 20 |
| 21 } // namespace ppapi_proxy |
| 22 |
| 23 #endif // NATIVE_CLIENT_SRC_SHARED_PPAPI_PROXY_UTILITY_H_ |
OLD | NEW |