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

Side by Side Diff: native_client_sdk/src/examples/hello_world_glibc/helper_functions.cc

Issue 9234043: Support GLBIC example. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 10 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 | Annotate | Revision Log
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include <algorithm>
6
7 #include "helper_functions.h"
8
9 namespace hello_world {
10
11 int32_t FortyTwo() {
12 return 42;
13 }
14
15 std::string ReverseText(const std::string& text) {
16 std::string reversed_string(text);
17 // Use reverse to reverse |reversed_string| in place.
18 std::reverse(reversed_string.begin(), reversed_string.end());
19 return reversed_string;
20 }
21 } // namespace hello_world
22
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698