第一种方法:1000 ?
DataBinder.Eval(Container.DataItem, "Detail").ToString().Substring(0, 1000)
+"……" : DataBinder.Eval(Container.DataItem, "Detail").ToStrin...
分类:
其他好文 时间:
2014-06-16 08:22:45
阅读次数:
337
一、截取字符串第一步 导入包:第二步:${fn:substring(str,0,10)} 二、标签循环判断三、if语句
分类:
Web程序 时间:
2014-06-15 22:27:36
阅读次数:
335
原题地址:https://oj.leetcode.com/problems/minimum-window-substring/题意:Given a string S and a string T, find the minimum window in S which will contain all...
分类:
编程语言 时间:
2014-06-15 22:10:42
阅读次数:
1109
原题地址:https://oj.leetcode.com/problems/longest-substring-without-repeating-characters/题意:Given a string, find the length of the longest substring witho...
分类:
编程语言 时间:
2014-06-15 19:51:00
阅读次数:
254
string str = "大龙喜欢zzm";
string s1 = str.Substring(0, 2);
string s2 = str.Substring(2, 2);
string s3 = str.Substring(4);
Console.WriteLine(str[0]);
...
分类:
其他好文 时间:
2014-06-15 08:14:34
阅读次数:
207
substring(s1,int,int) 截取字符串,起始位置,截取个数,返回截取后的字符串charindex(s1,s2)查找字符s1在s2中的位置。返回int位置SELECT substring(productid,0,(charindex(')',productid)+1)) as id1,...
分类:
数据库 时间:
2014-06-14 16:13:34
阅读次数:
238
这道题想的时候颇费了一些周折,想过把L的所有concatenation组合出来,放到hash或map里,然后遍历S的时候直接看。但是这样如果L的size: Lsize过大的话,可能的组合有Lsize!种,组合数剧增,效率低下,所以不采用这种方法。又考虑在S中从左向右一个word一个word遍历过去,...
分类:
其他好文 时间:
2014-06-14 09:07:00
阅读次数:
252
1 public class Solution { 2 public int
lengthOfLongestSubstring(String s) { 3 int length = s.length(); 4 if (length ==
0) return ...
分类:
其他好文 时间:
2014-06-13 08:31:32
阅读次数:
214
vector split(const string& src, const
string& separator){vectordest;string str = src;string
substring;string::size_type start = 0, index;do{index = st...
分类:
其他好文 时间:
2014-06-10 20:35:36
阅读次数:
238
You are given a string, S, and a list of words,
L, that are all of the same length. Find all starting indices of substring(s) in
S that is a concatena...
分类:
其他好文 时间:
2014-06-09 17:49:34
阅读次数:
240