diff --git a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java index b29ecd246..0cb5e1257 100644 --- a/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java +++ b/org.hl7.fhir.utilities/src/main/java/org/hl7/fhir/utilities/Utilities.java @@ -1980,6 +1980,20 @@ public class Utilities { } } + public static String tail(String url) { + int i = url.length()-1; + while (i >= 0 && isTokenChar(url.charAt(i))) { + i--; + } + if (i < 0) { + return url; + } else { + return url.substring(i+1); + } + } + + + //public static boolean !isWhitespace(String s) { //boolean ok = true; //for (int i = 0; i < s.length(); i++)