Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(905)

Side by Side Diff: runtime/bin/platform.h

Issue 2786183003: [dart:io] Reland: Adds Platform.localeName (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/platform.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 RUNTIME_BIN_PLATFORM_H_ 5 #ifndef RUNTIME_BIN_PLATFORM_H_
6 #define RUNTIME_BIN_PLATFORM_H_ 6 #define RUNTIME_BIN_PLATFORM_H_
7 7
8 #include "bin/builtin.h" 8 #include "bin/builtin.h"
9 #include "platform/globals.h" 9 #include "platform/globals.h"
10 10
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 static const char* LibraryPrefix(); 45 static const char* LibraryPrefix();
46 46
47 // Returns a string representing the operating system's shared library 47 // Returns a string representing the operating system's shared library
48 // extension (e.g. 'so', 'dll', ...). The returned string should not be 48 // extension (e.g. 'so', 'dll', ...). The returned string should not be
49 // deallocated by the caller. 49 // deallocated by the caller.
50 static const char* LibraryExtension(); 50 static const char* LibraryExtension();
51 51
52 // Extracts the local hostname. 52 // Extracts the local hostname.
53 static bool LocalHostname(char* buffer, intptr_t buffer_length); 53 static bool LocalHostname(char* buffer, intptr_t buffer_length);
54 54
55 static const char* LocaleName();
56
55 // Extracts the environment variables for the current process. The array of 57 // Extracts the environment variables for the current process. The array of
56 // strings is Dart_ScopeAllocated. The number of elements in the array is 58 // strings is Dart_ScopeAllocated. The number of elements in the array is
57 // returned in the count argument. 59 // returned in the count argument.
58 static char** Environment(intptr_t* count); 60 static char** Environment(intptr_t* count);
59 61
60 static const char* ResolveExecutablePath(); 62 static const char* ResolveExecutablePath();
61 63
62 // Stores the executable name. 64 // Stores the executable name.
63 static void SetExecutableName(const char* executable_name) { 65 static void SetExecutableName(const char* executable_name) {
64 executable_name_ = executable_name; 66 executable_name_ = executable_name;
(...skipping 30 matching lines...) Expand all
95 static char** argv_; // VM flags are argv_[1 ... script_index_ - 1] 97 static char** argv_; // VM flags are argv_[1 ... script_index_ - 1]
96 98
97 DISALLOW_ALLOCATION(); 99 DISALLOW_ALLOCATION();
98 DISALLOW_IMPLICIT_CONSTRUCTORS(Platform); 100 DISALLOW_IMPLICIT_CONSTRUCTORS(Platform);
99 }; 101 };
100 102
101 } // namespace bin 103 } // namespace bin
102 } // namespace dart 104 } // namespace dart
103 105
104 #endif // RUNTIME_BIN_PLATFORM_H_ 106 #endif // RUNTIME_BIN_PLATFORM_H_
OLDNEW
« no previous file with comments | « runtime/bin/io_natives.cc ('k') | runtime/bin/platform.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698