MCPcopy Index your code
hub / github.com/Tencent/APIJSON / getCorrectUrl

Method getCorrectUrl

APIJSONORM/src/main/java/apijson/StringUtil.java:793–807  ·  view source on GitHub ↗

获取网址,自动补全 @param url @return

(String url)

Source from the content-addressed store, hash-verified

791 * @return
792 */
793 public static String getCorrectUrl(String url) {
794 Log.i(TAG, "getCorrectUrl : \n" + url);
795 if (isNotEmpty(url, true) == false) {
796 return "";
797 }
798
799 // if (! url.endsWith("/") && ! url.endsWith(".html")) {
800 // url = url + "/";
801 // }
802
803 if (isUrl(url) == false) {
804 return URL_PREFIX + url;
805 }
806 return url;
807 }
808
809 /**获取去掉所有 空格 、"-""+86" 后的phone
810 * @param phone

Callers

nothing calls this directly

Calls 3

iMethod · 0.95
isNotEmptyMethod · 0.95
isUrlMethod · 0.95

Tested by

no test coverage detected