/
dinruspro
/
examples
Обзор
Документация
Войти
/
dinruspro
/
examples
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
main
CompDir/textdiff.h
23 строки
605 B
EnergonV
Примеры перекочевали в гит-репо (наконец-то!)
09 янв 2024, 19:13
09 янв 2024, 19:13
757fe92
Код
Авторство
О чём код?
#ifndef _CompDir_textdiff_h_ #define _CompDir_textdiff_h_ class TextSection { public: TextSection(int start1, int count1, int start2, int count2, bool same) : start1(start1), count1(count1), start2(start2), count2(count2), same(same) {} public: int start1; int count1; int start2; int count2 : 31; unsigned same : 1; }; Array<TextSection> CompareLineMaps(const Vector<String>& l1, const Vector<String>& l2); Vector<String> GetLineMap(Stream& stream); Vector<String> GetFileLineMap(const String& path); Vector<String> GetStringLineMap(const String &s); #endif