Module:Str find word/doc: Difference between revisions

Content deleted Content added
m DePiep moved page Module:User:DePiep/sfw/doc to Module:Str find word/doc: follow parent
No edit summary
Line 1:
{{Module:User:DePiep/sfw/links/doc}}
===prev===
*xp-f: {{#invoke:User:DePiep/sfwStr find word|main |explain=false|s=alpha$, Foo @, bar, Z|andw=bar}}
*xp-t: {{#invoke:User:DePiep/sfwStr find word|main |explain=yeS |s=alpha$, Foo @, bar, Z|andw=bar}}
*xp-stat: {{#invoke:User:DePiep/sfwStr find word|main |explain=static|s=alpha$, Foo @, bar, Z|andw=bar}}
*xp-abs: {{#invoke:User:DePiep/sfwStr find word|main |s=alpha$, Foo @, bar, Z|andw=bar}}
 
{{anchor|toc}}{{slink||top}}
Line 45:
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foo}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo, lima|word=foo}}
| {{aye}}
|
Line 51:
| {{para|1=source|2=alpha, uc-all}}
| {{para|word|uc-all}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, uc-all|word=uc-all}}
| {{aye}}
| "-" (hyphen) is part of the word
Line 57:
| {{para|1=source|2=alpha, do_something, white}}
| {{para|word|do_something}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, do_something, white|word=do_something}}
| {{aye}}
| "_" (underscore) is part of the word
Line 63:
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|november}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo, lima|word=november}}
| {{nay}}
|
Line 69:
| {{para|1=source|2=alpha, foobar, lima}}
| {{para|word|foo}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foobar, lima|word=foo}}
| {{nay}}
| 'foo' is not the complete word
Line 75:
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo, lima|word=}}
| {{nay}}
| no {{para|word}} entered
Line 81:
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foobar}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo, lima|word=foo-bar|yes=Yes, hit|no=No, not found}}
| {{nay}}
| full word ''foo-bar'' not in the source
Line 87:
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foobar}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo-bar, lima|word=foo|yes=Yes, hit|no=No, not found}}
| {{nay}}
| word ''foo'' not in the source as full word
Line 95:
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foo}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo, lima|word=foo|yes=Yes, hit|no=No, not found}}
| {{aye}}
|
Line 101:
| {{para|1=source|2=alpha, foo, lima}}
| {{para|word|foobar}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo, lima|word=foobar|yes=Yes, hit|no=No, not found}}
| {{nay}}
|
Line 150:
|
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima|w=foo|yes=yes|no=no}}
|
|-
Line 157:
|
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foo, lima|word=foobar|yes=yes|no=no}}
|
|-
Line 164:
|
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, foobar, lima|word=foo|yes=yes|no=no}}
| 'foo' is not the complete word
|-
Line 171:
|
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, FOO, lima|word=foo|yes=yes|no=no|case=false}}
| {{para|case|false}}: a=A ''(default)''
|-
Line 178:
|
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |source=alpha, FOO, lima|word=foo|yes=yes|no=no|case=true}}
| {{para|case|true}}: a=/=A
|}
Line 206:
| {{para|andw|delta, lima}}
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima, delta|andw=delta, lima}}
| both words present in the source
|-
Line 212:
| {{para|andw|foo, nov}}
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima, delta}}
| AND-logic: A word in the ''AND''-list is not present ({{mono|nov}}), so false
|-
Line 218:
| {{para|andw|delta}}
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima, delta|andw=delta}}
| {{para|w}} and {{para|andw}} are combined
 
Line 225:
|
| {{para|orw|delta, lima}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima, delta|orw=delta, lima}}
| both OR-words are present in the source
|-
Line 231:
|
|
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima, delta|orw=foo, nov}}
| OR-logic: one of the words is present ({{para|foo}}), so true
|-
Line 237:
| {{para|andw|alpha, lima}}
| {{para|orw|foo, nov}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima, delta|andw=alpha, lima|orw=foo, nov}}
|
|-
Line 243:
| {{para|andw|bar, april}}
| {{para|orw|nov, dec}}
| {{#invoke:User:DePiep/sfwStr find word|main |explain=true |s=alpha, foo, lima, delta|andw=delta|orw=nov, dec}}
| none of the OR-words is present, so false
|}