View source code
							
							
						
								Display the source code in std/uni.d from which this
								page was generated on github.
							
						
							Report a bug
							
						
								If you spot a problem with this page, click here to create a
								Bugzilla issue.
							
						
							
								Improve this page
							
							
					
								Quickly fork, edit online, and submit a pull request for this page.
								Requires a signed-in GitHub account. This works well for small changes.
								If you'd like to make larger changes you may want to consider using
								local clone.
							
						Function std.uni.MatcherConcept.test
Perform a semantic equivalent 2 operations:
        decoding a code point at front of inp and testing if
        it belongs to the set of code points of this matcher. 
						
				bool test(Range)
				(
				
				  ref Range inp
				
				)
				
				if (isRandomAccessRange!Range && is(ElementType!Range : char));
						
					
				The effect on inp depends on the kind of function called:
Match. If the codepoint is found in the set then range inp
        is advanced by its size in code units,
        otherwise the range is not modifed.
Skip. The range is always advanced by the size of the tested code point regardless of the result of test.
Test. The range is left unaffected regardless of the result of test.
Example
string truth = "2² = 4";
auto m = utfMatcher!char(unicodeAuthors
Dmitry Olshansky
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.