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

Unified Diff: samples-dev/swarm/swarm_ui_lib/util/Uri.dart

Issue 2828603002: Format samples and samples-dev directories. (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 side-by-side diff with in-line comments
Download patch
Index: samples-dev/swarm/swarm_ui_lib/util/Uri.dart
diff --git a/samples-dev/swarm/swarm_ui_lib/util/Uri.dart b/samples-dev/swarm/swarm_ui_lib/util/Uri.dart
index a9f4b5c9c771f31d0f98c7b9abaf7e91d8a4f822..28e05b5cf2816a86ddbdf7564c5deb4cb5820f20 100644
--- a/samples-dev/swarm/swarm_ui_lib/util/Uri.dart
+++ b/samples-dev/swarm/swarm_ui_lib/util/Uri.dart
@@ -51,12 +51,13 @@ class SwarmUri {
// TODO(terry): Added b/5096547 to track replace should by default behave
// like replaceAll to avoid a problematic usage pattern.
- return component.replaceAll(':', '%3A')
- .replaceAll('/', '%2F')
- .replaceAll('?', '%3F')
- .replaceAll('=', '%3D')
- .replaceAll('&', '%26')
- .replaceAll(' ', '%20');
+ return component
+ .replaceAll(':', '%3A')
+ .replaceAll('/', '%2F')
+ .replaceAll('?', '%3F')
+ .replaceAll('=', '%3D')
+ .replaceAll('&', '%26')
+ .replaceAll(' ', '%20');
}
/**
@@ -67,11 +68,12 @@ class SwarmUri {
static String decodeComponent(String component) {
if (component == null) return component;
- return component.replaceAll('%3A', ':')
- .replaceAll('%2F', '/')
- .replaceAll('%3F', '?')
- .replaceAll('%3D', '=')
- .replaceAll('%26', '&')
- .replaceAll('%20', ' ');
+ return component
+ .replaceAll('%3A', ':')
+ .replaceAll('%2F', '/')
+ .replaceAll('%3F', '?')
+ .replaceAll('%3D', '=')
+ .replaceAll('%26', '&')
+ .replaceAll('%20', ' ');
}
}
« no previous file with comments | « samples-dev/swarm/swarm_ui_lib/util/StringUtils.dart ('k') | samples-dev/swarm/swarm_ui_lib/view/CompositeView.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698