title: How to test two strings for ordinal case-insensitive equality using TStringHelper?
body: <p>I might have overlooked something, but it seems that there is no built-in function like:</p>
  
  <pre><code>var
    B: Boolean;
    S: string;
  begin
    S := 'Test';
    B := S.SameText('TEST');
    Assert(B);
  end;
  </code></pre>
  
  <p>.NET has a <a href="https://stackoverflow.com/questions/631233/is-there-a-c-sharp-case-insensitive-equals-operator">three parameter version for Equals</a>:</p>
  
  <pre><code>string.Equals(S, "TEST", StringComparison.OrdinalIgnoreCase);
  </code></pre>
  
  <p>The two versions I can come up with is:</p>
  
  <pre><code>// Ordinal?
  string.CompareText(S, 'TEST') = 0
  // Culture specific
  string.Compare(S, 'TEST', True, TLanguages.UserDefaultLocale)
  </code></pre>
  
  <p>What puts me off here is that I have to compare to 0, instead of good old <code>SameText</code>:</p>
  
  <pre><code>SameText(S, 'TEST')
  </code></pre>
  
  <p>Did Embarcadero overlook to provide a <code>SameText</code> on <code>TStringHelper</code>?</p>