Skip to content

Instantly share code, notes, and snippets.

@Whateverable
Created October 20, 2019 15:58
Show Gist options
  • Save Whateverable/0d4238e086056d6e9304825113750777 to your computer and use it in GitHub Desktop.
Save Whateverable/0d4238e086056d6e9304825113750777 to your computer and use it in GitHub Desktop.
greppable6
samemark
File Code
COKE/App-Unicode-Mangle
…/Mangle.pm6 :23:
my $try-char = $char.samemark('a');
bduggan/p6-jupyter-kernel
…/04-completions.t :22:
is-deeply $completions, [ <samecase samemark samewith say> ], 'completions for "sa"';
bduggan/p6-jupyter-kernel
…/04-completions.t :26:
is-deeply $completions, [ <samecase samemark samewith say> ], 'completions for "sa"';
bduggan/p6-jupyter-kernel
…/04-completions.t :47:
is-deeply $completions, $("samecase", "samemark", "samespace", "say"), 'string methods';
perl6/doc
…/regexes.pod6 :1953:
=head3 X<Samemark|substitution adverb,:samemark;substitution adverb,:mm>
perl6/doc
…/regexes.pod6 :1955:
The C<:samemark> or C<:mm> adverb implies C<:ignoremark> for the regex,
perl6/doc
…/Str.pod6 :1013:
:mm | :samemark | preserves character marks (e.g. 'ü' replaced with 'o' will result in 'ö')
perl6/doc
…/Str.pod6 :1187:
=head2 routine samemark
perl6/doc
…/Str.pod6 :1189:
multi sub samemark(Str:D $string, Str:D $pattern --> Str:D)
perl6/doc
…/Str.pod6 :1190:
method samemark(Str:D: Str:D $pattern --> Str:D)
perl6/doc
…/Str.pod6 :1200:
say 'åäö'.samemark('aäo'); # OUTPUT: «aäo␤»
perl6/doc
…/Str.pod6 :1201:
say 'åäö'.samemark('a'); # OUTPUT: «aao␤»
perl6/doc
…/Str.pod6 :1203:
say samemark('Pêrl', 'a'); # OUTPUT: «Perl␤»
perl6/doc
…/Str.pod6 :1204:
say samemark('aöä', ''); # OUTPUT: «aöä␤»
perl6/doc
…/words.pws :1033:
samemark
tony-o/perl6-html-parser-xml
…/S05.html :1001:
<p>The <code>:mm</code> (or <code>:samemark</code>) variant may be used on a substitution to change the substituted string to the same mark…
tony-o/perl6-html-parser-xml
…/S05.html :1004:
<p class="smartlink-file"><a href="https://github.com/perl6/roast/blob/master/S05-modifier/samemark.t#L9-L40"><code>S05-modifier/samemark.t</code> lines <code>9&ndash;40</code></a>
tony-o/perl6-html-parser-xml
…/S05.html :2018:
<li>The <code>:samecase</code>, <code>:samespace</code> and <code>:samemark</code> modifiers (and their short forms) are only allowed on substitutions (<code>s///</code> and <code>s[] = ...</code>).
tony-o/perl6-html-parser-xml
…/S05.html :10800:
<p>Please note that the <code>:ii</code>/<code>:samecase</code> and <code>:mm</code>/<code>:samemark</code> switches are really two differe…
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment