Simple string interception method that supports Chinese and other encodings, passing the corresponding parameters directly to the call can be
Copy Code code as follows:
/**
* String interception, support Chinese and other coding
*
JS Self-band function
Concat
Combines the text of two or more characters to return a new string.
var a = "Hello";
var B = ", World";
var C = A.concat (b);
alert (c);
c = "Hello,world"
IndexOf
Returns the index (search from left to
This paper brings together the common functions in ASP
function Syntax function LenLen (Stringvarname) returns the number of characters within a string, or the number of bytes required to store a variable. TrimTrim (string) to remove spaces before
Function
return type
Describe
Example
Results
string | | String
Text
String connection
' Post ' | | ' Gresql '
PostgreSQL
Bit_length (String)
Int
The number of bits in a
String function ASCIIReturns the ASCII encoding of the first letter of the stringSelect ASCII (' name ')Select ASCII (name) from XueshengSelect *from Xuesheng where ASCII (name) >=200CHAR--Convert the ASCII code to the corresponding characterSelect
First, common String functions:
1. Char_length Gets the length (in characters)
2. Format formatted
3, insert replace the way inserted
4. INSTR Get Location
5, Left/right take left, take right
6. Length Gets the lengths
First, common String functions:
1. Char_length Gets the length (in characters)
2. Format formatted
3, insert replace the way inserted
4. INSTR Get Location
5, Left/right take left, take right
6. Length Gets the lengths
First, mathematical functionsMathematical functions are mainly used for processing numbers, including integers, floating-point numbers, and so on.ABS (x)Returns the absolute value of XSELECT ABS (-1)--return 1Ceil (x), CEILING (x)Returns the
1. Intercept string from leftLeft (str, length)Description: Left (truncated field, intercept length)Example: Select Left (content,200) as abstract from my_content_t2, starting from the right to intercept the stringRight (str, length)Description:
--Refer:--http://www.cnblogs.com/gnielee/archive/2009/09/09/1563154.html--http://www.cnblogs.com/yudy/archive/2012/07/18/2597874.htmlCREATE OR REPLACETYPE Ty_str_split is TABLE of VARCHAR2(4000);CREATE OR REPLACE FUNCTIONSplitstr (p_stringinch
SQL Server String FunctionsString functions are used to perform various operations on characters and binary characters1.ASCII () functionThe ASCII (character_expression) function is used to return the leftmost ASCII code value in a string expression.
First, Function: Split ()Function: Use a specified delimiter to store a string into an arrayExample:Str= "Jpg|bmp|gif|ico|png";Arr=thestring.split ("|");Arr is an array that contains the character values "JPG", "BMP", "GIF", "ico", and "PNG"Second,
JS string Function Extension code. You can refer to the prototype usage method to expand your own string processing functions.
The Code is as follows:
/*************************************** ************** CreateBy: joe zhou* CreateDate: 2011-9-4
The substring method is used to extract the character of a string intermediary between two specified subscriptsSUBSTRING (start,end)Start and end position, zero-based indexParameter descriptionStart Required. A nonnegative integer that specifies the
Sass function-string function, sass function string
Sass FunctionsIn addition to variables that can be defined in Sass@ Extend,% PlaceholderAndMixinsIn addition to other features, it also provides a series of function functions. It mainly includes: ●
I personally summarized some attributes and usage of String, Function, and Array.
The Code is as follows:
/* Array */Array. reverse () // sorts the Array in reverse order and changes it to a new Array.Array. sort () // sorts the Array by
This article describes the JS String function String. replace (). For more information, see. Replace (one or more) substrings matching a given regular expression
String. replace (regexp, replacement)
Parameters:
Regexp: RegExp object or string
Directly on the code:/** * Project Name: * File Description: EXCEL Formula Type: String Formula * Main Features: * Version number: 1.0 * Producer: Liu Morning * created: 2013-12-3 **/package excel;/** * @author LCX * */public class Stringfunctions
Asp.net string segmentation function usage, asp.net string Function
Let's look at a simple example.
But its array length is 25, rather than 3. The following method replaces "[111cn.net]" with a special character, for example, $.
For example, if I
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.