Welcome to mirror list, hosted at ThFree Co, Russian Federation.

common.hpp « words - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 142379beebb582904a6ce95277fcf71c09734cee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#pragma once
#include "../base/base.hpp"

namespace sl
{

struct StrFn
{
  struct Str; // Never defined.

  Str const * (* Create)(char const * utf8Data, uint32_t size);
  void (* Destroy)(Str const * s);
  int (* PrimaryCompare)(void * pData, Str const * a, Str const * b);
  int (* SecondaryCompare)(void * pData, Str const * a, Str const * b);

  void * m_pData;
  uint64_t m_PrimaryCompareId;
  uint64_t m_SecondaryCompareId;
};

}