OLD | NEW |
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 #ifndef BIN_UTILS_H_ | 5 #ifndef BIN_UTILS_H_ |
6 #define BIN_UTILS_H_ | 6 #define BIN_UTILS_H_ |
7 | 7 |
8 #include <stdlib.h> | 8 #include <stdlib.h> |
9 #include <string.h> | 9 #include <string.h> |
10 | 10 |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 static const char* ConsoleStringToUtf8(const char* str); | 62 static const char* ConsoleStringToUtf8(const char* str); |
63 static char* ConsoleStringToUtf8(char* str); | 63 static char* ConsoleStringToUtf8(char* str); |
64 static const char* Utf8ToConsoleString(const char* utf8); | 64 static const char* Utf8ToConsoleString(const char* utf8); |
65 static char* Utf8ToConsoleString(char* utf8); | 65 static char* Utf8ToConsoleString(char* utf8); |
66 static char* WideToUtf8(wchar_t* wide); | 66 static char* WideToUtf8(wchar_t* wide); |
67 static const char* WideToUtf8(const wchar_t* wide); | 67 static const char* WideToUtf8(const wchar_t* wide); |
68 static wchar_t* Utf8ToWide(char* utf8); | 68 static wchar_t* Utf8ToWide(char* utf8); |
69 static const wchar_t* Utf8ToWide(const char* utf8); | 69 static const wchar_t* Utf8ToWide(const char* utf8); |
70 }; | 70 }; |
71 | 71 |
| 72 class ShellUtils { |
| 73 public: |
| 74 // Get the arguments passed to the program as unicode strings. |
| 75 // If GetUnicodeArgv returns a pointer that pointer has to be |
| 76 // deallocated with a call to FreeUnicodeArgv. |
| 77 static wchar_t** GetUnicodeArgv(int* argc); |
| 78 static void FreeUnicodeArgv(wchar_t** argv); |
| 79 }; |
| 80 |
72 #endif // BIN_UTILS_H_ | 81 #endif // BIN_UTILS_H_ |
OLD | NEW |