码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果
JavaScript之正则表达式初识
1、什么是正则表达式正则表达式(Regular Expression)是一个描述字符模式的对象,ECMAcript的RegExp类表示正则表达式,而String和RegExp都定义了使用正则表达式强大的模式匹配和文本检索与替换的函数。 2、创建正则表达式的方式第一种创建方式 var box=new RegExp(‘box’); //第一个是参数字符串 var box=new...
分类:编程语言   时间:2015-04-10 17:55:01    阅读次数:151
字符串对比.net String.EndsWith方法 (String)
string str="web/abc.aspx";if(str.EndsWith("abc.aspx")){此方法将 value 与位于此实例末尾、与 value 长度相同的子字符串进行比较,并返回它们是否相等的指示。 若要相等,value 必须是对此同一实例的引用,或者与此实例的末尾匹配。 此方...
分类:Web程序   时间:2015-04-10 17:50:30    阅读次数:216
【AE接口散记】
*IFeature要素修改其属性值后必须IFeature.Store()才能在数据库中存储相应修改*ITableSort对ISelectionSet中的数据按照属性进行排序(ISelectionSet可以通过IFeatureClass.Select()方法获得)1 string strSortFie...
分类:其他好文   时间:2015-04-10 17:46:19    阅读次数:142
求两个字符串最大的子字符串C#
此代码由Java改写而来,字符串支持中文格式的。 string str1 = "中国ab-15"; string str2 = "中国ab-23"; byte[] char1 = Encoding.UTF8.GetBytes(str1...
分类:Windows程序   时间:2015-04-10 17:28:09    阅读次数:124
C# 动态获取JSON实体对象
1 //获取ip物理地址的接口地址 2 public static readonly string ipUrl = "http://ip.taobao.com/service/getIpInfo.php?ip="; 3 4 public void ProcessR...
分类:Windows程序   时间:2015-04-10 17:23:36    阅读次数:219
Java比较两个日期的大小
public static String getComparedSBQDate(String yxqq,String starttime){ String str = starttime; SimpleDateFormat sdf = new SimpleDateForm...
分类:编程语言   时间:2015-04-10 17:19:31    阅读次数:129
android获取系统语言
Locale locale = getResources().getConfiguration().locale; String language = locale.getLanguage(); 其中language为语言码: zh:汉语 en:英语...
分类:移动开发   时间:2015-04-10 15:37:37    阅读次数:127
LayoutInflater.inflate详解
LayoutInflater.inflate详解LayoutInflater概述 从XML文件中实例化一个布局成对应的View类, 它从来不会直接使用, 而是使用getLayoutInflater()或者getSystemService(String)来获得一个对应当前context的标准LayoutInflater 实例。 例如:    LayoutInflater inflater =...
分类:其他好文   时间:2015-04-10 15:34:35    阅读次数:115
[LeetCode] Distinct Subsequences
Given a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is formed from the orig...
分类:其他好文   时间:2015-04-10 15:29:31    阅读次数:161
JAVA JDBC连接 SQLServer2012
连接数据库的java测试代码 1 import java.sql.*; 2 3 public class ConManager { 4 final static String cfn = "com.microsoft.sqlserver.jdbc.SQLServerDriver"; 5 ...
分类:数据库   时间:2015-04-10 15:26:20    阅读次数:371
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!