Android String Cut safeCutNoDot(String str, int length)

Here you can find the source of safeCutNoDot(String str, int length)

Description

safe Cut No Dot

Declaration

static String safeCutNoDot(String str, int length) 

Method Source Code

//package com.java2s;

public class Main {
    static String safeCutNoDot(String str, int length) {
        if (str.length() > length) {
            return str.substring(0, length);
        }//from ww w.  j a v a2s  .  c  om
        return str;
    }
}

Related

  1. cutString(String source, String output, int slength)
  2. cutString(String source, int slength)
  3. cutText(String text, int maxLength)
  4. safeCut(String str, int length)
  5. cutString(String str, int length)
  6. cutString(String str, int length, String dot)
  7. cutStringFromChar(String str1, String str2, int offset)
  8. cutRight(final String srcStr, final String cutStr)