UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
CsvParser.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
6#include "Containers/Array.h"
8
11{
13
20 CORE_API FCsvParser(const FString& InSourceString);
21
27 const FRows& GetRows() const
28 {
29 return Rows;
30 }
31
34 FCsvParser(const FCsvParser&) = delete;
36 FCsvParser& operator=(const FCsvParser&) = delete;
37
38private:
40 enum struct EParseResult { EndOfCell, EndOfRow, EndOfString };
41
43 void ParseRows();
44
46 EParseResult ParseRow();
47
49 EParseResult ParseCell();
50
51private:
52
54 FString SourceString;
55
57 TCHAR* BufferStart;
58
60 const TCHAR* ReadAt;
61
63 FRows Rows;
64
65private:
66
68 int8 MeasureNewLine(const TCHAR* At);
69};
FPlatformTypes::int8 int8
An 8-bit signed integer.
Definition Platform.h:1121
FPlatformTypes::TCHAR TCHAR
Either ANSICHAR or WIDECHAR, depending on whether the platform supports wide characters or the requir...
Definition Platform.h:1135
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Array.h:670
Definition CsvParser.h:11
TArray< TArray< const TCHAR * > > FRows
Definition CsvParser.h:12
FCsvParser(const FCsvParser &)=delete
const FRows & GetRows() const
Definition CsvParser.h:27
FCsvParser & operator=(FCsvParser &&)=delete
FCsvParser & operator=(const FCsvParser &)=delete
FCsvParser(FCsvParser &&)=delete