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

Unified Diff: pkg/analysis_server/lib/src/services/correction/strings.dart

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: pkg/analysis_server/lib/src/services/correction/strings.dart
diff --git a/pkg/analysis_server/lib/src/services/correction/strings.dart b/pkg/analysis_server/lib/src/services/correction/strings.dart
index b58a9d761d815b6c739deb04441c34e3aa6856f5..3c44fb626d5875c576330e55f5a55d44537e355f 100644
--- a/pkg/analysis_server/lib/src/services/correction/strings.dart
+++ b/pkg/analysis_server/lib/src/services/correction/strings.dart
@@ -6,7 +6,6 @@ library services.src.correction.strings;
import 'dart:math';
-
/**
* "$"
*/
@@ -22,7 +21,6 @@ const int CHAR_DOT = 0x2E;
*/
const int CHAR_UNDERSCORE = 0x5F;
-
String capitalize(String str) {
if (isEmpty(str)) {
return str;
@@ -163,7 +161,6 @@ bool isWhitespace(int c) {
return isSpace(c) || c == 0x0D || c == 0x0A;
}
-
String remove(String str, String remove) {
if (isEmpty(str) || isEmpty(remove)) {
return str;
@@ -171,7 +168,6 @@ String remove(String str, String remove) {
return str.replaceAll(remove, '');
}
-
String removeEnd(String str, String remove) {
if (isEmpty(str) || isEmpty(remove)) {
return str;
@@ -182,7 +178,6 @@ String removeEnd(String str, String remove) {
return str;
}
-
String removeStart(String str, String remove) {
if (isEmpty(str) || isEmpty(remove)) {
return str;
@@ -193,7 +188,6 @@ String removeStart(String str, String remove) {
return str;
}
-
String repeat(String s, int n) {
StringBuffer sb = new StringBuffer();
for (int i = 0; i < n; i++) {
@@ -202,7 +196,6 @@ String repeat(String s, int n) {
return sb.toString();
}
-
/**
* Gets the substring after the last occurrence of a separator.
* The separator is not returned.
« no previous file with comments | « pkg/analysis_server/lib/src/services/correction/status.dart ('k') | pkg/analysis_server/lib/src/services/correction/util.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698