User Tools

Site Tools


en:instr

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
en:instr [2016/08/12 20:09]
admin
en:instr [2016/08/13 07:59]
admin
Line 1: Line 1:
 ===== Instr (Function) ===== ===== Instr (Function) =====
 ==== Format ==== ==== Format ====
-**instr** ( [[stringexpressions|haystack_string_expression]] , //​needle_expr// ​)\\ +**instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] ​)\\ 
-**instr** ( [[stringexpressions|haystack_string_expression]] , //​needle_expr// ​//​start_expr// ​)\\ +**instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] ​[[integerexpressions|start_expression]] ​)\\ 
-**instr** ( [[stringexpressions|haystack_string_expression]] , //​needle_expr// ​//​start_expr// ​, [[booleanexpressions|boolean_expression]])\\+**instr** ( [[stringexpressions|haystack_string_expression]] , [[stringexpressions|needle_string_expression]] ​[[integerexpressions|start_expression]] ​, [[booleanexpressions|boolean_expression]])\\
  
 returns [[integerexpressions|integer_expression]] returns [[integerexpressions|integer_expression]]
  
 ==== Description ==== ==== Description ====
-Check to see if the string ​//​needle_expr// ​is contained in the string [[stringexpressions|haystack_string_expression]]. ​ If it is, then this function will return the index of starting character of the first place where //​needle_expr// ​occurs. ​ Otherwise, this function will return 0.+Check to see if the string ​[[stringexpressions|needle_string_expression]] ​is contained in the string [[stringexpressions|haystack_string_expression]]. ​ If it is, then this function will return the index of starting character of the first place where [[stringexpressions|needle_string_expression]] ​occurs. ​ Otherwise, this function will return 0.
  
-You may optionally specify a starting location for the search to begin //​start_expr//​.  If the start is 1 or greater the search will begin from the specified character from the start. ​ If the start is < 0 then the search will begin from the nth character from the end.  The search will ALWAYS look forward.+You may optionally specify a starting location for the search to begin [[integerexpressions|start_expression]].  If the start is 1 or greater the search will begin from the specified character from the start. ​ If the start is < 0 then the search will begin from the nth character from the end.  The search will ALWAYS look forward.
  
 An optional [[booleanexpressions|boolean_expression]] may be used to specify that the search will treat upper and lower case letters the same. An optional [[booleanexpressions|boolean_expression]] may be used to specify that the search will treat upper and lower case letters the same.
en/instr.txt · Last modified: 2016/08/13 07:59 by admin