Skip to content

Commit

Permalink
ValueMapの格納方法を変更
Browse files Browse the repository at this point in the history
  • Loading branch information
molhot committed Sep 3, 2023
1 parent 34e3836 commit b41da46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions srcs/HandleString/HandlingString.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -204,3 +204,8 @@ std::string HandlingString::obtain_afterword(const std::string other, char delim
{
return other.substr(other.find(delimiter) + 1);
}

double HandlingString::obtain_weight(const std::string &other)
{
return (HandlingString::str_to_double(HandlingString::obtain_afterword(other, '=')));
}
1 change: 1 addition & 0 deletions srcs/includes/HandlingString.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ class HandlingString
static void ft_strcpy(char *input_memory, std::string const &sub);
static std::string obtain_beforeword(const std::string other, char delimiter);
static std::string obtain_afterword(const std::string other, char delimiter);
static double obtain_weight(const std::string &other);
};

#endif

0 comments on commit b41da46

Please sign in to comment.