Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  duckdb_charset_collation.h   Sprache: C

 

/*
  Copyright (c) 2026, MariaDB Foundation.

  This program is free software; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published by
  the Free Software Foundation; version 2 of the License.

  This program is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  GNU General Public License for more details.

  You should have received a copy of the GNU General Public License
  along with this program; if not, write to the Free Software
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1335 USA
*/


#pragma once

#include <string>

#include <my_global.h>
#include "m_ctype.h"

namespace myduck
{

/** Get the corresponding DuckDB collation according to MariaDB CHARSET_INFO.
  DuckDB's collation is not completely consistent with MariaDB.
  We only focus on the two behaviors of NOCASE and NOACCENT.
  @param[in]  cs        Pointer to MariaDB CHARSET_INFO structure
  @param[out] warn_msg  Warning message if there is any warning
  @return  DuckDB collation string
*/

std::string get_duckdb_collation(const CHARSET_INFO *cs,
                                 std::string &warn_msg);

/* Charsets other than utf8mb3 and utf8mb4 use POSIX Collation directly.
   DuckDB treats POSIX same as binary. We cannot use "binary" because it is
   a keyword, so we use POSIX instead. */

static const std::string COLLATION_BINARY= "POSIX";
static const std::string COLLATION_NOCASE= "NOCASE";
static const std::string COLLATION_NOCASE_NOACCENT= "NOCASE.NOACCENT";

} // namespace myduck

Messung V0.5 in Prozent
C=92 H=100 G=95

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-10-08) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=1126438
#Domains=1897691