Skip to content

Commit a957905

Browse files
committed
Func Vectors to Strings.
1 parent f5405ad commit a957905

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
#include "FunctionsUtils.h"
2+
3+
std::string FPL::Instruction::FunctionUtils::ReturnStringVector(std::vector<std::string> vector) {
4+
std::stringstream result_STR;
5+
for (auto it = vector.begin(); it != vector.end(); it++) {
6+
if (it != vector.begin()) {
7+
result_STR << " ";
8+
}
9+
result_STR << *it;
10+
}
11+
return result_STR.str();
12+
}

src/Instructions/FunctionsUtils.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#pragma once
2+
3+
#include <iostream>
4+
#include <string>
5+
#include <vector>
6+
#include <sstream>
7+
#include "../Essentials/Tokenizer.h"
8+
9+
namespace FPL::Instruction::FunctionUtils {
10+
std::string ReturnStringVector(std::vector<std::string> vector);
11+
}

0 commit comments

Comments
 (0)