libpromeki 1.0.0-alpha
PROfessional MEdia toolKIt
 
Loading...
Searching...
No Matches
subrip.h
Go to the documentation of this file.
1
8#pragma once
9
10
11#include <promeki/config.h>
12#if PROMEKI_ENABLE_PROAV
13#include <cstdint>
14#include <promeki/buffer.h>
15#include <promeki/error.h>
16#include <promeki/namespace.h>
17#include <promeki/result.h>
18#include <promeki/string.h>
19#include <promeki/subtitle.h>
20
21PROMEKI_NAMESPACE_BEGIN
22
77class SubRip {
78 public:
97 static Result<SubtitleList> parse(const void *data, size_t size);
98
100 static Result<SubtitleList> parse(const Buffer &buf);
101
103 static Result<SubtitleList> parse(const String &str);
104
118 static Buffer emit(const SubtitleList &list);
119
121 static String emitString(const SubtitleList &list);
122
123 SubRip() = delete; // Static-only utility class.
124};
125
126PROMEKI_NAMESPACE_END
127
128#endif // PROMEKI_ENABLE_PROAV