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

Side by Side Diff: compiler/java/com/google/dart/compiler/util/apache/StringUtils.java

Issue 10832435: Remove references to frog; rename our old json compilation server. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 4 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
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 /* 5 /*
6 * Licensed to the Apache Software Foundation (ASF) under one or more 6 * Licensed to the Apache Software Foundation (ASF) under one or more
7 * contributor license agreements. See the NOTICE file distributed with 7 * contributor license agreements. See the NOTICE file distributed with
8 * this work for additional information regarding copyright ownership. 8 * this work for additional information regarding copyright ownership.
9 * The ASF licenses this file to You under the Apache License, Version 2.0 9 * The ASF licenses this file to You under the Apache License, Version 2.0
10 * (the "License"); you may not use this file except in compliance with 10 * (the "License"); you may not use this file except in compliance with
(...skipping 6032 matching lines...) Expand 10 before | Expand all | Expand 10 after
6043 * which can occur when my Java implementation is used with very large strin gs.<br> 6043 * which can occur when my Java implementation is used with very large strin gs.<br>
6044 * This implementation of the Levenshtein distance algorithm 6044 * This implementation of the Levenshtein distance algorithm
6045 * is from <a href="http://www.merriampark.com/ldjava.htm">http://www.merria mpark.com/ldjava.htm</a></p> 6045 * is from <a href="http://www.merriampark.com/ldjava.htm">http://www.merria mpark.com/ldjava.htm</a></p>
6046 * 6046 *
6047 * <pre> 6047 * <pre>
6048 * StringUtils.getLevenshteinDistance(null, *) = IllegalArgument Exception 6048 * StringUtils.getLevenshteinDistance(null, *) = IllegalArgument Exception
6049 * StringUtils.getLevenshteinDistance(*, null) = IllegalArgument Exception 6049 * StringUtils.getLevenshteinDistance(*, null) = IllegalArgument Exception
6050 * StringUtils.getLevenshteinDistance("","") = 0 6050 * StringUtils.getLevenshteinDistance("","") = 0
6051 * StringUtils.getLevenshteinDistance("","a") = 1 6051 * StringUtils.getLevenshteinDistance("","a") = 1
6052 * StringUtils.getLevenshteinDistance("aaapppp", "") = 7 6052 * StringUtils.getLevenshteinDistance("aaapppp", "") = 7
6053 * StringUtils.getLevenshteinDistance("frog", "fog") = 1 6053 * StringUtils.getLevenshteinDistance("frig", "fig") = 1
6054 * StringUtils.getLevenshteinDistance("fly", "ant") = 3 6054 * StringUtils.getLevenshteinDistance("fly", "ant") = 3
6055 * StringUtils.getLevenshteinDistance("elephant", "hippo") = 7 6055 * StringUtils.getLevenshteinDistance("elephant", "hippo") = 7
6056 * StringUtils.getLevenshteinDistance("hippo", "elephant") = 7 6056 * StringUtils.getLevenshteinDistance("hippo", "elephant") = 7
6057 * StringUtils.getLevenshteinDistance("hippo", "zzzzzzzz") = 8 6057 * StringUtils.getLevenshteinDistance("hippo", "zzzzzzzz") = 8
6058 * StringUtils.getLevenshteinDistance("hello", "hallo") = 1 6058 * StringUtils.getLevenshteinDistance("hello", "hallo") = 1
6059 * </pre> 6059 * </pre>
6060 * 6060 *
6061 * @param s the first String, must not be null 6061 * @param s the first String, must not be null
6062 * @param t the second String, must not be null 6062 * @param t the second String, must not be null
6063 * @return result distance 6063 * @return result distance
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after
6580 * If the named charset is not supported 6580 * If the named charset is not supported
6581 * @throws NullPointerException 6581 * @throws NullPointerException
6582 * if the input is null 6582 * if the input is null
6583 * @since 3.1 6583 * @since 3.1
6584 */ 6584 */
6585 public static String toString(byte[] bytes, String charsetName) throws Unsup portedEncodingException { 6585 public static String toString(byte[] bytes, String charsetName) throws Unsup portedEncodingException {
6586 return charsetName == null ? new String(bytes) : new String(bytes, chars etName); 6586 return charsetName == null ? new String(bytes) : new String(bytes, chars etName);
6587 } 6587 }
6588 6588
6589 } 6589 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698