mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 02:37:10 +00:00 
			
		
		
		
	func_cut: Add example to documentation.
This adds an example to the XML documentation clarifying usage
of the CUT function to address a common misusage.
(cherry picked from commit 3e91137404)
			
			
This commit is contained in:
		
				
					committed by
					
						 Asterisk Development Team
						Asterisk Development Team
					
				
			
			
				
	
			
			
			
						parent
						
							a7483b687d
						
					
				
				
					commit
					af1802bb4b
				
			| @@ -75,6 +75,10 @@ | ||||
| 		</syntax> | ||||
| 		<description> | ||||
| 			<para>Cut out information from a string (<replaceable>varname</replaceable>), based upon a named delimiter.</para> | ||||
| 					<example title="The 'varname' parameter can only accept a variable name, not a variable expression"> | ||||
| 				exten => s,1,Set(foo=${CUT(bar,,2)}); This is correct syntax | ||||
| 				exten => s,2,Set(foo=${CUT(${bar},,2)}); This is invalid syntax (unless bar contains the name of another variable) | ||||
|  					</example> | ||||
| 		</description> | ||||
| 	</function> | ||||
|  ***/ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user