Android String Sub String Get subString(String source, String start, int offsetStart, String end, int offsetEnd)

Here you can find the source of subString(String source, String start, int offsetStart, String end, int offsetEnd)

Description

Substring

Declaration


public static String subString(String source, String start,
        int offsetStart, String end, int offsetEnd) 

Method Source Code

//package com.java2s;

public class Main {
    /****************************** Substring ******************************/
//from  ww  w  . j  a v a  2  s.  c om
    public static String subString(String source, String start,
            int offsetStart, String end, int offsetEnd) {
        return source.substring(source.indexOf(start) + offsetStart,
                source.indexOf(offsetEnd) + offsetEnd);
    }
}

Related

  1. deleteLastIf(String str, String eq_str)
  2. getTailorString(String string, int length)
  3. mid(String str, int beginIndex, int length)
  4. subStringByByte(String str, int startPos, int length)
  5. subStringByByte(String paramString, int beginIndex, int endIndex)
  6. subString(String str, int length)
  7. subInStringByFlag(String str, String flag)
  8. substringWithoutException(String text, int startIndex, int endIndex)
  9. subString(String str)