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

StrCells.h « mix « src « far2l - github.com/elfmz/far2l.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3840cab15fd0403c1584a965c4a4f65130601bfd (plain)
1
2
3
4
5
6
7
8
9
10
#pragma once

size_t StrCellsCount(const wchar_t *pwz, size_t nw);
size_t StrZCellsCount(const wchar_t *pwz);
size_t StrSizeOfCells(const wchar_t *pwz, size_t nw, size_t &ng, bool round_up);
size_t StrSizeOfCell(const wchar_t *pwz, size_t nw);

void StrCellsTruncateLeft(wchar_t *pwz, size_t &n, size_t ng);
void StrCellsTruncateRight(wchar_t *pwz, size_t &n, size_t ng);
void StrCellsTruncateCenter(wchar_t *pwz, size_t &n, size_t ng);