Skip to content

Commit

Permalink
Merge pull request #1324 from ideawu/dev
Browse files Browse the repository at this point in the history
renamed: util/strings.h -> util/string_util.h
  • Loading branch information
ideawu authored Jan 11, 2020
2 parents 6007293 + a05be90 commit 16a032b
Show file tree
Hide file tree
Showing 17 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/backend_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ found in the LICENSE file.
#include <string>
#include "backend_sync.h"
#include "util/log.h"
#include "util/strings.h"
#include "util/string_util.h"

BackendSync::BackendSync(SSDBImpl *ssdb, int sync_speed){
thread_quit = false;
Expand Down
2 changes: 1 addition & 1 deletion src/client/SSDB_impl.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "SSDB_impl.h"
#include "util/strings.h"
#include "util/string_util.h"
#include <signal.h>

namespace ssdb{
Expand Down
2 changes: 1 addition & 1 deletion src/net/proc.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ class ProcMap



#include "../util/strings.h"
#include "../util/string_util.h"

template<class T>
static std::string serialize_req(T &req){
Expand Down
2 changes: 1 addition & 1 deletion src/net/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
*/
#include "server.h"
#include "../util/strings.h"
#include "../util/string_util.h"
#include "../util/file.h"
#include "../util/config.h"
#include "../util/log.h"
Expand Down
2 changes: 1 addition & 1 deletion src/serv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ found in the LICENSE file.
*/
#include "version.h"
#include "util/log.h"
#include "util/strings.h"
#include "util/string_util.h"
#include "serv.h"
#include "net/proc.h"
#include "net/server.h"
Expand Down
2 changes: 1 addition & 1 deletion src/ssdb/binlog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ found in the LICENSE file.
#include "const.h"
#include "../include.h"
#include "../util/log.h"
#include "../util/strings.h"
#include "../util/string_util.h"
#include <map>

/* Binlog */
Expand Down
2 changes: 1 addition & 1 deletion src/ssdb/options.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Use of this source code is governed by a BSD-style license that can be
found in the LICENSE file.
*/
#include "options.h"
#include "../util/strings.h"
#include "../util/string_util.h"

#ifdef NDEBUG
static const int LOG_QUEUE_SIZE = 20 * 1000 * 1000;
Expand Down
2 changes: 1 addition & 1 deletion src/util/Makefile-ios
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ all: $(OBJS)
ar -rs $(LIB) $(OBJS)
rm -rf $(OUTPUT_HEADER_DIR) $(OUTPUT_LIB_DIR)/$(LIB)
mkdir -p $(OUTPUT_HEADER_DIR)
cp -f config.h bytes.h strings.h $(OUTPUT_HEADER_DIR)
cp -f config.h bytes.h string_util.h $(OUTPUT_HEADER_DIR)
mv -f $(LIB) $(OUTPUT_LIB_DIR)

.cpp.o:
Expand Down
2 changes: 1 addition & 1 deletion src/util/app.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#include "file.h"
#include "config.h"
#include "daemon.h"
#include "strings.h"
#include "string_util.h"
#include <stdio.h>

int Application::main(int argc, char **argv){
Expand Down
2 changes: 1 addition & 1 deletion src/util/bytes.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ found in the LICENSE file.
#ifndef UTIL_BYTES_H_
#define UTIL_BYTES_H_

#include "strings.h"
#include "string_util.h"

// readonly
// to replace std::string
Expand Down
2 changes: 1 addition & 1 deletion src/util/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ found in the LICENSE file.
*/
#include "log.h"
#include "config.h"
#include "strings.h"
#include "string_util.h"

inline static
int is_kv_seperator(int ch){
Expand Down
2 changes: 1 addition & 1 deletion src/util/line.h
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

#include <inttypes.h>
#include <string>
#include "strings.h"
#include "string_util.h"

class LineEncoder{
public:
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion tools/leveldb-import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ found in the LICENSE file.
#include "net/link.h"
#include "util/log.h"
#include "util/file.h"
#include "util/strings.h"
#include "util/string_util.h"

void welcome(){
printf("leveldb-import - Import existing leveldb into ssdb\n");
Expand Down
2 changes: 1 addition & 1 deletion tools/ssdb-dump.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ found in the LICENSE file.
#include "net/link.h"
#include "util/log.h"
#include "util/file.h"
#include "util/strings.h"
#include "util/string_util.h"

struct Config {
std::string ip;
Expand Down
2 changes: 1 addition & 1 deletion tools/ssdb-migrate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#include <string>
#include <vector>
#include "util/log.h"
#include "util/strings.h"
#include "util/string_util.h"
#include "SSDB_client.h"

#define BATCH_SIZE 100
Expand Down
2 changes: 1 addition & 1 deletion tools/ssdb-repair.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ found in the LICENSE file.

#include "util/log.h"
#include "util/file.h"
#include "util/strings.h"
#include "util/string_util.h"

void welcome(){
printf("ssdb-repair - SSDB repair tool\n");
Expand Down

0 comments on commit 16a032b

Please sign in to comment.