Структура папок Laravel 5.0: общедоступные и ресурсы

    public static List<string> SplitByMaxLength(this string str)
    {
        List<string> splitString = new List<string>();

        for (int index = 0; index < str.Length; index += MaxLength)
        {
            splitString.Add(str.Substring(index, Math.Min(MaxLength, str.Length - index)));
        }

        return splitString;
    }
37
задан Adriaan 12 October 2015 в 20:03
поделиться