godot/thirdparty/graphite/src/gr_segment.cpp

// SPDX-License-Identifier: MIT OR MPL-2.0 OR LGPL-2.1-or-later OR GPL-2.0-or-later
// Copyright 2010, SIL International, All rights reserved.

#include "graphite2/Segment.h"
#include "inc/UtfCodec.h"
#include "inc/Segment.h"

usingnamespacegraphite2;

namespace
{

  gr_segment* makeAndInitialize(const Font *font, const Face *face, uint32 script, const Features* pFeats/*must not be NULL*/, gr_encform enc, const void* pStart, size_t nChars, int dir)
  {}

  template <typename utf_iter>
  inline size_t count_unicode_chars(utf_iter first, const utf_iter last, const void **error)
  {}
}


extern "C" {

size_t gr_count_unicode_characters(gr_encform enc, const void* buffer_begin, const void* buffer_end/*don't go on or past end, If NULL then ignored*/, const void** pError)   //Also stops on nul. Any nul is not in the count
{}


gr_segment* gr_make_seg(const gr_font *font, const gr_face *face, gr_uint32 script, const gr_feature_val* pFeats, gr_encform enc, const void* pStart, size_t nChars, int dir)
{}


void gr_seg_destroy(gr_segment* p)
{}


float gr_seg_advance_X(const gr_segment* pSeg/*not NULL*/)
{}


float gr_seg_advance_Y(const gr_segment* pSeg/*not NULL*/)
{}


unsigned int gr_seg_n_cinfo(const gr_segment* pSeg/*not NULL*/)
{}


const gr_char_info* gr_seg_cinfo(const gr_segment* pSeg/*not NULL*/, unsigned int index/*must be <number_of_CharInfo*/)
{}

unsigned int gr_seg_n_slots(const gr_segment* pSeg/*not NULL*/)
{}

const gr_slot* gr_seg_first_slot(gr_segment* pSeg/*not NULL*/)
{}

const gr_slot* gr_seg_last_slot(gr_segment* pSeg/*not NULL*/)
{}

float gr_seg_justify(gr_segment* pSeg/*not NULL*/, const gr_slot* pSlot/*not NULL*/, const gr_font *pFont, double width, enum gr_justFlags flags, const gr_slot *pFirst, const gr_slot *pLast)
{}

} // extern "C"