mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-21 01:04:57 +08:00
20 lines
463 B
C
20 lines
463 B
C
|
|
/*
|
||
|
|
* Copyright (C) 2018 Intel Corporation
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: MIT
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
#include <string>
|
||
|
|
#include <vector>
|
||
|
|
#include <exception>
|
||
|
|
|
||
|
|
void addSlash(std::string &path);
|
||
|
|
|
||
|
|
std::vector<char> readBinaryFile(const std::string &fileName);
|
||
|
|
|
||
|
|
void readFileToVectorOfStrings(std::vector<std::string> &lines, const std::string &fileName, bool replaceTabs = false);
|
||
|
|
|
||
|
|
size_t findPos(const std::vector<std::string> &lines, const std::string &whatToFind);
|