From 54341053b273c905afa7503d8dadcc4c46a0d2d3 Mon Sep 17 00:00:00 2001 From: Neil Date: Fri, 29 Jan 2021 20:51:34 +1100 Subject: Remove Lexilla files from Scintilla --- lexlib/StringCopy.h | 32 -------------------------------- 1 file changed, 32 deletions(-) delete mode 100644 lexlib/StringCopy.h (limited to 'lexlib/StringCopy.h') diff --git a/lexlib/StringCopy.h b/lexlib/StringCopy.h deleted file mode 100644 index 1c5442e65..000000000 --- a/lexlib/StringCopy.h +++ /dev/null @@ -1,32 +0,0 @@ -// Scintilla source code edit control -/** @file StringCopy.h - ** Safe string copy function which always NUL terminates. - ** ELEMENTS macro for determining array sizes. - **/ -// Copyright 2013 by Neil Hodgson -// The License.txt file describes the conditions under which this software may be distributed. - -#ifndef STRINGCOPY_H -#define STRINGCOPY_H - -namespace Scintilla { - -// Safer version of string copy functions like strcpy, wcsncpy, etc. -// Instantiate over fixed length strings of both char and wchar_t. -// May truncate if source doesn't fit into dest with room for NUL. - -template -void StringCopy(T (&dest)[count], const T* source) { - for (size_t i=0; i