Module:Str find word/doc: Difference between revisions

Content deleted Content added
No edit summary
Line 8:
{{anchor|toc}}{{slink||top}}
__TOC__
 
==demos==
====literals====
:demos & tests to be oimproved
* T lit: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, "(12) A?", lima, bar|word=bar, "(12) A?" }}
* T 2lt, ws: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "deux", "nov"|orwords="(12) A?", "deux", "paris" }}
* T 2lt, ws: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "deux", nov|word=deux, "(12) A?", }}
* T 2lt, ws: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "deux", nov|word=deux, "(12) A?", |lit=true}}
 
:litdflt, t, f
* T lit=F: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "deux", nov|word=deux, "(12) A?", |lit=false}}
* T lit=F: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "deux", nov|word=deux, "(12) A?", |lit=false}}
* T lit=F: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "deux", nov|word=deux, "(12) A?", |lit=false}}
* T lit=F: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "deux", nov|word=deux, "(12) A?", |lit=false}}
 
* T lit, ws!: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, " (12) A? ", lima,|word=foo, " (12) A? " }}
* F lit, ws!: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, " (12) A? ", lima,|word=foo, "(12) A?" }}
 
* T lit, ws!: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, " (12) A? ", lima,|word=foo, " (12) A? " }}
* F lit, ws!: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, " (12) A? ", lima,|word=foo, "(12) A?" }}
 
 
:edge
* ? lit edge, ws: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, " ", nov|word="lima", nov , " ", }}
* ? lit edge, ws: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, "", nov|word=nov, "(12) A?", ""}}
* ? lit edge, ws: {{#invoke:User:DePiep/sfw|main |explain=true |s="(12) A?", lima, ", nov|word=nov, "(12) A?", }}
 
* F lit: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, "(12) A?", foo, lima, bar|word=12}}
* test lit: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha"(12) A?"foo, lima, bar|orw=12, foo}}
 
:minor checks
* F lit: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha; foo, "lima", bar|orw=12, lima}}
* F lit: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha"(12) A?"foo, "lima", bar|orw=12, lima}}
* F lit: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha"(12) A?"foo, "lima", bar|andw=lima, "(12) A?"}}
 
====bool====
* T boolT: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, 1, foo, lima, bar|word=foo, true |bool=true}}
* F boolF: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, 1, foo, lima, bar|word=foo, true |bool=false}}
* F bool: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|word=november|bool=true}}
 
* T: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|word=foo}}
* F: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|word=november}}
 
:bool check case
* T boolT: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, 1, foo, lima, bar|word=foo, true |bool=true|case=true}}
* F boolF: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, 1, foo, lima, bar|word=foo, true |bool=false|case=false}}
 
* T boolT: {{#invoke:User:DePiep/sfw|main |explain=true |s=Alpha, 1, Foo, Lima, Bar|word=Foo, true |bool=true|case=true}}
* F boolF: {{#invoke:User:DePiep/sfw|main |explain=true |s=Alpha, 1, Foo, Lima, Bar|word=foo, true |bool=false|case=false}}
 
====basic tests====
* T: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|word=foo}}
* F: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|word=november}}
 
* T and: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andwords=foo, bar}}
* T or: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|orwords=foo, bar}}
* T andor: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andwords=foo, bar|orwords=nov, alpha}}
* F andor: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andwords=foo, bar|orwords=nov, dec}}
* F andor: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andwords=foo, nov|orwords=bar, dec}}
 
* T case: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, Foo, |word=FOO|case=true}}
* F blanks: {{#invoke:User:DePiep/sfw|main |explain=true |s=|word=}}
 
* T yn: {{#invoke:User:DePiep/sfw|main |explain=true |s=foo, bar|word=bar|yes=Yessss|no=Noooo}}
* F yn: {{#invoke:User:DePiep/sfw|main |explain=true |s=foo, bar|word=nov|yes=Yessss|no=Noooo}}
 
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo, nov}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima ,bar |orw=alpha, nov}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima,bar|andw=delta, lima |orw=bar, nov}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima,bar|andw=delta, lima |orw=oct, nov}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima,bar|orw=lima alpha}}
 
====yes no options====
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|w=foo|yes=yes|no=no}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|w=nov|yes=yes|no=noooo}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|w=nov|yes={{lorem ipsum}}|no=nooo}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima,bar|andw=foo|orw=|yes=|no=noooo}}
 
====yes/no=<blank> ====
*b: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo|yes=}}
*bb: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo|yes=|no=}}
*bnoval: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo|yes=|no=}}
*abst: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo|no=}}
* T: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo|yes=Yess}}
*bT: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo|yes=|no=nonono}}
* F ynblank: {{#invoke:User:DePiep/sfw|main |explain=true |s=foo, bar|word=bar|yes=|no=}}
 
====unicode html decode====
* T: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|andw=foo}}
* T: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, &#x0046;oo, lima, bar|andw=foo}}
* T: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, foo, lima, bar|w=&#x0066;oo}}
* T: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, &#x0066;oo, lima, bar|w=&#x0046;oo|case=false}}
* f: {{#invoke:User:DePiep/sfw|main |explain=true |s=alpha, &#x0066;oo, lima, bar|w=&#x0046;oo|case=true}}
 
====case====
*dflt: {{#invoke:User:DePiep/sfw|main |explain=true |s=FOO, bar|w=foo}}
*dflt: {{#invoke:User:DePiep/sfw|main |explain=true |s=foo, bar|w=fOo}}
*cF:dflt {{#invoke:User:DePiep/sfw|main |explain=true |s=foo, Bar|w=fOo|orw=bAr|case=false}}
*cT:dflt {{#invoke:User:DePiep/sfw|main |explain=true |s=foo, Bar|w=fOo|orw=bAr|case=true}}
 
====file & table output====
*{{#invoke:User:DePiep/sfw|main |explain=true |s=foo, bar|w=foo|yes={{lorem ipsum}}}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=foo, bar|w=foo|yes=[[File:example.png]]}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=sbar|w=sbar|yes={{Periodic table (micro)}}}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=|w=}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=|andw=|yes=Y|no=N}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=;;|andw=;;|orw=}}
 
====nowords input====
*{{#invoke:User:DePiep/sfw|main |explain=true |s=|w=foo}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=sbar|w=}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=|w=}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=|andw=|yes=Y|no=N}}
*{{#invoke:User:DePiep/sfw|main |explain=true |s=;;|andw=;;""," "|orw=}}
 
==/doc==