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

Side by Side Diff: pkg/intl/test/message_extraction/find_output_directory.dart

Issue 12733003: Adds facilities for extracting Intl.message calls and generating code from translations (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes from review comments, also made tests more robust, removed scheduled_test dependency Created 7 years, 9 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
OLDNEW
(Empty)
1 /**
2 * A shared library for finding the valu eof the --output-dir parameter
3 * which all of these programs use.
4 */
5 library find_output_directory;
6
7 const directiveName = '--output-dir=';
8
9 _asString(list) => new String.fromCharCodes(list);
10
11 findOutputDirectory(List<String> args) {
12 var directive = args.firstWhere(
13 (x) => x.contains(directiveName),
14 orElse: () => null);
15 if (directive == null) return '.';
16 var file = directive.codeUnits.skip(directiveName.length);
17 return _asString(file);
18 }
19
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698